Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable repomodel: use ctx.bookmarks()

Changeset f04a6fd642e8

Parent 79dfe62677d6

by Steve Borho

Changes to 2 files · Browse files at f04a6fd642e8 Showing diff from parent 79dfe62677d6 Diff from another changeset...

 
518
519
520
 
 
 
 
 
 
 
 
 
521
522
523
524
525
526
527
528
529
530
 
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
 
 
 
 
533
534
535
@@ -518,13 +518,18 @@
  effects = qtlib.geteffect('log.branch')   parts.append(qtlib.applyeffects(u' %s ' % branchu, effects))   + for mark in ctx.bookmarks(): + if mark == self.repo._bookmarkcurrent: + style = 'log.curbookmark' + elif mark in self.repo._bookmarks: + style = 'log.bookmark' + marku = hglib.tounicode(mark) + effects = qtlib.geteffect(style) + parts.append(qtlib.applyeffects(u' %s ' % marku, effects)) +   for tag in ctx.thgtags():   if self.repo.thgmqtag(tag):   style = 'log.patch' - elif tag == self.repo._bookmarkcurrent: - style = 'log.curbookmark' - elif tag in self.repo._bookmarks: - style = 'log.bookmark'   else:   style = 'log.tag'   tagu = hglib.tounicode(tag)
 
81
82
83
 
84
85
86
 
81
82
83
84
85
86
87
@@ -81,6 +81,7 @@
  def branch(self): return self._branch   def parents(self): return ()   def tags(self): return () + def bookmarks(self): return ()   def children(self): return ()   def extra(self): return {}