comparison mercurial/commands.py @ 18479:0efd5686f80c stable

bookmarks: show active bookmark even if not at working dir If the active bookmark doesn't point at a parent of the working dir (e.g. a pull moved it out from under us), we nonetheless show it as active. This follows on 2096e025a728 in removing the dichotomy (at least in the UI) between "current" and "active" bookmarks.
author Kevin Bullock <kbullock@ringworld.org>
date Sun, 27 Jan 2013 11:29:14 -0600
parents 1fb9890c55bd
children b1e949f6c17d d4a79e075303
comparison
equal deleted inserted replaced
18478:886936ecc21b 18479:0efd5686f80c
871 bookmarks.setcurrent(repo, None) 871 bookmarks.setcurrent(repo, None)
872 872
873 else: # show bookmarks 873 else: # show bookmarks
874 for bmark, n in sorted(marks.iteritems()): 874 for bmark, n in sorted(marks.iteritems()):
875 current = repo._bookmarkcurrent 875 current = repo._bookmarkcurrent
876 if bmark == current and n == cur: 876 if bmark == current:
877 prefix, label = '*', 'bookmarks.current' 877 prefix, label = '*', 'bookmarks.current'
878 else: 878 else:
879 prefix, label = ' ', '' 879 prefix, label = ' ', ''
880 880
881 if ui.quiet: 881 if ui.quiet: