Branch-aware hg merge in a branchy repository

Alpár Jüttner alpar at cs.elte.hu
Wed Jun 25 08:46:23 CDT 2008


Hi,

> You can use hg clone repo#branch to do this, I think.

Could you tell me how an average user can find out this trick?
Before your post, I used 'hg clone -r brach repo' and I was always very
annoyed because it cloned only the branch but 'default' was the current
branch in the cloned version.

Now I checked carefully
      * the hg's built in help
      * the whole mercurial website (well, only the English part of it)
      * the "unofficial" hg book
and I couldn't find a single word about this repo#branch notation.

At this point, let me ask another question I cannot find an answer:

What happens if I have a named branch and a tag sharing the same name?
How can I refer to them?

Best regards,
Alpar




More information about the Mercurial mailing list