[Bug 4559] New: prune -r <bookmark> also moves current bookmark

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Mar 5 10:41:07 CST 2015


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

          Priority: normal
            Bug ID: 4559
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: prune -r <bookmark> also moves current bookmark
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: halbersa at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: evolution
           Product: Mercurial

The current bookmark gets updated in the event that you prune an unrelated
changeset containing a bookmark. This behaviour comes from here:
http://42.netv6.net/evolve-main/file/161b8f6e7402/hgext/evolve.py#l870

It looks intentional, but I wonder if it was originally written for commands
other than prune. It doesn't seem like it's doing what most people would
want/expect.

STR:
o rev: 2
| bookmark: bar
|
| o rev: 1
| | bookmark: foo
|/
o rev: 0

$ hg up bar
$ hg prune -r 1

Result:
o rev: 2
|
o rev: 0
  bookmark: foo
  bookmark: bar

Expected:
o rev: 2
| bookmark: bar
|
o rev: 0
  bookmark: foo

Note this only happens if the changeset being pruned has a different bookmark.

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


More information about the Mercurial-devel mailing list