Why does hg pull changes my branch

Sébastien Pierre sebastien.pierre at gmail.com
Wed Jul 19 15:11:32 UTC 2017


Hi all,

I've noticed that mercurial tends to change the current branch after an `hg
pull`. Here's an example:

[I] sebastien at Cerise ~/W/f/d/XXX>
          *sebastien|4 â‘‚ R567|567*
hg pull
pulling from ssh://hg@bitbucket.org/XXX/XXXX
searching for changes
adding changesets
adding manifests
adding file changes
added 10 changesets with 10 changes to 5 files (+3 heads)
(run 'hg heads .' to see heads, 'hg merge' to merge)
26 files updated, 0 files merged, 10 files removed, 0 files unresolved

[I] sebastien at Cerise ~/W/f/d/XXX>
                *alex|5 â‘‚ R568|577*

The first line in bold shows we're on my branch at revision 567, the second
line in bold shows we're on alex's branch at revision 568.

I did not specify `hg pull -u`, and I don't have an alias to it either. I'm
a bit puzzled by the fact that pulling changes branch, and revision as well
for that matter.

Any idea why this happens?

Thanks!

-- Sébastien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20170719/b67a3614/attachment.html>


More information about the Mercurial mailing list