Local vs. non local commands

Kevin Bullock kbullock+mercurial at ringworld.org
Sat Nov 20 16:07:06 UTC 2010


On 19 Nov 2010, at 8:48 PM, Matus wrote:

> I agree with Alpar's opinion about current misdesign of hg subrepos, unless I 
> misunderstood something. Short example:
> 
> What happens if person1 has version1.0 of his software in repo1, and then he 
> creates subrepo1 in repo1 as a dependency and creates version2.0 of their 
> software. Then person2 clones this repo1 and subrepo1 to his repo2 and subrepo2. 
> Then they find a bug in version1.0, so they both update their repositories to 
> version1.0 (to fix the bug and create a branch), where subrepo was not present. 
> How would they ever get back the subrepo??

I think your issue is different than the original posting, but: in your scenario, version 1.0 wasn't dependent on the subrepo—so the subrepo would be updated to the null revision. And if you then update to version 2.0 again, the subrepo is updated to the corresponding revision.

pacem in terris / mir / shanti / salaam / heiwa
Kevin R. Bullock




More information about the Mercurial mailing list