creating a branch and subrepos

Adam Downer Adam.Downer at monitisegroup.com
Thu Aug 26 10:48:47 UTC 2010


>> Commiting code to the parent repo produces change sets on the new
>> branch. I also do a quick search for a class I need to update relating
>> to my new code, this happens to be in one of the sub repos. I do my
>> change and commit again. However the sub repo does not add the change
>> set to the branch I created earlier. It add the change set to the
>> default branch.
>>
>> So basically I will need to repeat the branch creation step in all the
>> sub repos before I commit changes there.

> Well, it only makes sense to branch in the subrepos if the upstream for
> those subrepos will like the branches. But maybe that is not something
> we should try to decide in the command itself.

I'm sorry but I don't understand what you mean by 'like'. Mercurial would not complain about the creation of new heads in this case would it? As these are named branches.

>> I am currently using 1.5.4, has this behaviour been changed in the
>> later releases? I can't see anything obvious in the release notes.
>>
>> Or have I missed something, a hidden recursion option in the branch
>> command?

>No, this has not changed, hence this section in the wiki:
>
>  http://mercurial.selenic.com/wiki/Subrepositories#branch
>
>Please create an account for the wiki and edit it with your suggestions.

That is the section I was originally referring too. I'll add this to the wiki as you suggest.


This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying, disclosure or taking of any action in reliance upon it by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy.

The Monitise group comprises: Monitise plc (Reg. No. 6011822), Monitise Group Limited (Reg. No. 5590897), Monitise International Limited (Reg. No. 5556711), Monitise Europe Limited (Reg. No. 4831976) and Monitise Business Solutions Limited (Reg. No. 5814266). These companies are registered in England and Wales and their registered office address is: Warnford Court, 29 Throgmorton Street, London, EC2N 2AT United Kingdom.



More information about the Mercurial mailing list