hg pull (with branch name)

Alex Van Boxel alex at vanboxel.be
Sat May 31 07:44:50 CDT 2008


On Sat, 31 May 2008 11:32:13 +0200, "Adrian Buehlmann"

> I suggest you join IRC channel #mercurial
> so we might help you interactively

I've just logged in to IRC. But first of all, I apologize, the pull did
get the correct revisions. I was confuest about the rev numbers that was
changed. Yeah, I read it in the manual but it still a habit from relying
on the revision number. Why I got confused is that doing and update on
the just pulled branch, it updated to the default (25) branch and not to
the branch I pulled:

W:\HG\branch>hg branches
XQXQ3.0                        31:cca9f815298f
XQXQ 3.0GA - April 2007        26:290e5c6fb7a5 (inactive)
default                        25:0aa75316cb38 (inactive)

So, if I understand correctly, If I pull a branch, the current branch is
not set to the branch name I pulled but keeps to default. If I pull a
branch I should do this:

hg pull -r XQXQ3.0 ..\REP
hg update XQXQ3.0

Omitting the branch name from the update is not correct. Am I correct?

  _/
 _/ Alex Van Boxel



More information about the Mercurial mailing list