I\'m struggling on how to correctly track nested repositories using TortoiseHg.
I have a main repository that tracks my whole project. This project contains several litt
I've finally managed to make it work the way I'd love. I'm using TortoiseHg on winXP, so I won't be able to tell you what hg calls were internally made, but I don't think anything fancy is used here.
I started with an existing repo, inside which I had a plugins/
directory filled with plugin1/
, plugin/2
directories (not repositories, just simple directories).
I also had those plugins online, hosted on BitBucket.
plugins/
directory, right click on plugin1/
, TortoiseHg => Remove Files
.Hg Commit
plugins/
directory, right click, TortoiseHg => Clone...
, I selected the http address of the plugin on bit bucket (http://bitbucket.org/username/plugin1/
and clicked Done
.hgsub
file and add the plugins/plugin1 = plugins/plugin1
line inside it.Note that the extra remove
and commit
steps are only required if the newly cloned repo has the same name of an already tracked directory.
You should try using:
Subrepositories is a feature that allows you to treat a collection of repositories as a group.
This will allow you to clone, commit to, push, and pull projects and their associated libraries as a group.