--- a/mercurial/commands.py Wed Feb 16 01:28:42 2011 +0100
+++ b/mercurial/commands.py Wed Feb 16 01:29:26 2011 +0100
@@ -532,17 +532,11 @@
ui.status(_("no bookmarks set\n"))
else:
for bmark, n in sorted(marks.iteritems()):
- if ui.configbool('bookmarks', 'track.current'):
- current = repo._bookmarkcurrent
- if bmark == current and n == cur:
- prefix, label = '*', 'bookmarks.current'
- else:
- prefix, label = ' ', ''
+ current = repo._bookmarkcurrent
+ if bmark == current and n == cur:
+ prefix, label = '*', 'bookmarks.current'
else:
- if n == cur:
- prefix, label = '*', 'bookmarks.current'
- else:
- prefix, label = ' ', ''
+ prefix, label = ' ', ''
if ui.quiet:
ui.write("%s\n" % bmark, label=label)
@@ -4059,7 +4053,7 @@
else:
ret = hg.update(repo, rev)
- if repo.ui.configbool('bookmarks', 'track.current'):
+ if brev in repo._bookmarks:
bookmarks.setcurrent(repo, brev)
return ret