using: Windows, TortoiseHg 4.4
I have just started looking at Mercurial as a route for version control instead of our (not so) wonderful TFS 2010 system. The idea is to allow more flexible branching using our current project architecture and make merging easier.
I created a sub repo structure similar to the one below:
+Main
++SharedProjects
++Country1
++Country2
(+=repo, ++=subrepo)
This created .hgsub in Main that contains:
SharedProjects = SharedProjects
Country1 = Country1
Country2 = Country2
Looking in the hg Workbench i can see the correct hierarchy of project folders under Main.
The Problem:
When i add a file to the Country1 folder and commit the Main folder, nothing is commited. But if I commit the Country1 (sub) repo it commits just fine.
Obviously this is going to cause problems where multiple subrepos under subrepos exist and it will get very risky commiting changes will be missed.
Not sure if I am trying to do something i shouldn't be or if it just doesn't work and there is a trick to it? Have searched and found quite a few older issues but none of those fixes have worked:
I've tried:
- adding ./ to the front of each .hgsub path
- making sure 'recursive' is checked in commit dialog
- adding 'recurserepos=true' to the mercurial.ini
- made sure file does commit if i directly commit the sub repo
- command line commit from Main 'hg commit -S -m "test cmd line commit"' got the result 'nothing changed'