Why are mercurial subrepos behaving as unversioned files in eclipse AND torotoiseHG

Posted by noam on Stack Overflow See other posts from Stack Overflow or by noam
Published on 2010-05-22T05:49:53Z Indexed on 2010/05/22 12:00 UTC
Read the original article Hit count: 368

Filed under:
|
|
|
|

I am trying to use the subrepo feature of mercurial, using the mercurial eclipse plugin\tortoiseHG.

These are the steps I took:

  1. Created an empty dir /root
  2. cloned all repos that I want to be subrepos inside this folder (/root/sub1, /root/sub2)
  3. Created and added the .hgsub file in the root repo /root/.hgsub and put all the mappings of the sub repos in it
  4. using tortoiseHG, right clicked on /root and selected create repository here
  5. again with tortoise, selected all the files inside /root and added them to to the root repo
  6. commited the root repo
  7. pushed the local root repo into an empty repo I have set up on kiln

Then, I pulled the root repo in eclipse, using import->mercurial.

Now I see that all the subrepos appear as though they are unversioned (no "orange cylinder" icon next to their corresponding folders in the eclipse file explorer).

Furthermore, when I right click on one of the subrepos, I don't get all the hg commands in the "team" menu as I usually get, with root projects - no "pull", "push" etc.

Also, when I made a change to a file in a subrepo, and then "committed" the root project, it told me there were no changes found.

I see the same behavior also in tortoiseHG - When I am browsing files under /root, the files belonging directly to the root repo have an small icon (a V sign) on them marking they are version controlled, while the subrepos' folders aren't marked as such.

Am I doing something wrong, or is it a bug?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about mercurial