##// END OF EJS Templates
bookmarks: name label for active bookmark correctly...
Ryan McElroy -
r25347:ceec79b5 default
parent child Browse files
Show More
@@ -84,7 +84,7 b' effects may be overridden from your conf'
84 resolve.unresolved = red bold
84 resolve.unresolved = red bold
85 resolve.resolved = green bold
85 resolve.resolved = green bold
86
86
87 bookmarks.current = green
87 bookmarks.active = green
88
88
89 branches.active = none
89 branches.active = none
90 branches.closed = black bold
90 branches.closed = black bold
@@ -313,7 +313,7 b' except ImportError:'
313 'grep.filename': 'magenta',
313 'grep.filename': 'magenta',
314 'grep.user': 'magenta',
314 'grep.user': 'magenta',
315 'grep.date': 'magenta',
315 'grep.date': 'magenta',
316 'bookmarks.current': 'green',
316 'bookmarks.active': 'green',
317 'branches.active': 'none',
317 'branches.active': 'none',
318 'branches.closed': 'black bold',
318 'branches.closed': 'black bold',
319 'branches.current': 'green',
319 'branches.current': 'green',
@@ -40,6 +40,12 b" optionalrepo = ''"
40 # @command decorator.
40 # @command decorator.
41 inferrepo = ''
41 inferrepo = ''
42
42
43 # label constants
44 # until 3.5, bookmarks.current was the advertised name, not
45 # bookmarks.active, so we must use both to avoid breaking old
46 # custom styles
47 activebookmarklabel = 'bookmarks.active bookmarks.current'
48
43 # common command options
49 # common command options
44
50
45 globalopts = [
51 globalopts = [
@@ -1037,7 +1043,7 b' def bookmark(ui, repo, *names, **opts):'
1037 for bmark, n in sorted(marks.iteritems()):
1043 for bmark, n in sorted(marks.iteritems()):
1038 current = repo._activebookmark
1044 current = repo._activebookmark
1039 if bmark == current:
1045 if bmark == current:
1040 prefix, label = '*', 'bookmarks.current'
1046 prefix, label = '*', activebookmarklabel
1041 else:
1047 else:
1042 prefix, label = ' ', ''
1048 prefix, label = ' ', ''
1043
1049
@@ -5932,10 +5938,10 b' def summary(ui, repo, **opts):'
5932 ui.write(_('bookmarks:'), label='log.bookmark')
5938 ui.write(_('bookmarks:'), label='log.bookmark')
5933 if current is not None:
5939 if current is not None:
5934 if current in marks:
5940 if current in marks:
5935 ui.write(' *' + current, label='bookmarks.current')
5941 ui.write(' *' + current, label=activebookmarklabel)
5936 marks.remove(current)
5942 marks.remove(current)
5937 else:
5943 else:
5938 ui.write(' [%s]' % current, label='bookmarks.current')
5944 ui.write(' [%s]' % current, label=activebookmarklabel)
5939 for m in marks:
5945 for m in marks:
5940 ui.write(' ' + m, label='log.bookmark')
5946 ui.write(' ' + m, label='log.bookmark')
5941 ui.write('\n', label='log.bookmark')
5947 ui.write('\n', label='log.bookmark')
General Comments 0
You need to be logged in to leave comments. Login now