Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

logview: 'current' bookmarks highlighted in log view

Changeset d871e96ac58d

Parent 04402d95b4ed

by paulm

Changes to one file · Browse files at d871e96ac58d Showing diff from parent 04402d95b4ed Diff from another changeset...

 
159
160
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
163
164
165
166
167
168
 
 
 
 
169
170
171
 
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
 
 
181
182
183
184
185
186
187
@@ -159,13 +159,29 @@
  escape = gtklib.markup_escape_text   summary = escape(hglib.toutf(summary))   node = ctx.node() + + # Check if we're using bookmarks, and have the + # 'track.current' option set; if so, + # find what the 'current' bookmark is + currentBookmark = None + bookmarks = None + try: + bookmarks = hglib.extensions.find('bookmarks') + except KeyError: + pass + if bookmarks: + if self.repo.ui.configbool('bookmarks', 'track.current'): + currentBookmark = bookmarks.current(self.repo) +   tags = self.repo.nodetags(node)   taglist = hglib.toutf(', '.join(tags))   tstr = ''   for tag in tags:   if tag not in self.hidetags: - tstr += gtklib.markup(' %s ' % tag, color='black', - background='#ffffaa') + ' ' + style = {'color':'black', 'background':'#ffffaa'} + if tag == currentBookmark: + style['background'] = '#ffcc99' + tstr += gtklib.markup(' %s ' % tag, **style) + ' '     branch = ctx.branch()   bstr = ''