[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


          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:

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

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

$ hg up bar
$ hg prune -r 1

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

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