diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -873,7 +873,7 @@ def bookmark(ui, repo, mark=None, rev=No else: # show bookmarks for bmark, n in sorted(marks.iteritems()): current = repo._bookmarkcurrent - if bmark == current and n == cur: + if bmark == current: prefix, label = '*', 'bookmarks.current' else: prefix, label = ' ', '' diff --git a/tests/test-bookmarks-pushpull.t b/tests/test-bookmarks-pushpull.t --- a/tests/test-bookmarks-pushpull.t +++ b/tests/test-bookmarks-pushpull.t @@ -47,7 +47,7 @@ import bookmark by name (run 'hg update' to get a working copy) $ hg bookmarks X 0:4e3505fd9583 - Y 0:4e3505fd9583 + * Y 0:4e3505fd9583 Z 0:4e3505fd9583 $ hg debugpushkey ../a namespaces bookmarks @@ -64,7 +64,7 @@ import bookmark by name importing bookmark X $ hg bookmark X 0:4e3505fd9583 - Y 0:4e3505fd9583 + * Y 0:4e3505fd9583 Z 0:4e3505fd9583 export bookmark by name