[Bug 3677] New: hg clone with a bookmark deafult updates to bookmark not branch

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Tue Oct 23 11:54:08 CDT 2012


http://bz.selenic.com/show_bug.cgi?id=3677

          Priority: normal
            Bug ID: 3677
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg clone with a bookmark deafult updates to bookmark
                    not branch
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: dsp at php.net
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.4-rc
         Component: Mercurial
           Product: Mercurial

$ hg init test
$ cd test
$ echo a > a
$ hg ci -Ama a
$ echo b > b
$ hg ci -Amb b
$ hg bookmark -r '.^' -f default
$ cd ../
$ hg clone test test2
$ hg -R test2 log -r 
changeset:   0:9059a54cfb1f
bookmark:    default
user:        David Soria Parra <dsp at php.net>
date:        Tue Oct 23 18:39:29 2012 +0200
summary:     a

it's caused by mercurial/hg.py:412. We are doing a lookup in default. As
bookmarks are checked before branches, this causes the bug to be triggered and
default bm is choosen instead of the branch tip.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list