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

history: add command to show previous selected revision

Changeset e8c31306ea87

Parent d6b4a18a4977

by Yuki KODAMA

Changes to one file · Browse files at e8c31306ea87 Showing diff from parent d6b4a18a4977 Diff from another changeset...

 
317
318
319
 
 
320
321
322
 
 
323
324
325
 
492
493
494
 
495
496
497
 
1858
1859
1860
 
 
 
 
1861
1862
1863
 
317
318
319
320
321
322
 
 
323
324
325
326
327
 
494
495
496
497
498
499
500
 
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
@@ -317,9 +317,11 @@
  icon=gtk.STOCK_ABOUT),   dict(text=_('Working Parent'), func=navigate, args=['.'],   icon=gtk.STOCK_HOME), + dict(text=_('Previous Selected'), icon=gtk.STOCK_GO_BACK, + func=lambda *a: self.goto_prev_sel()),   dict(text='----'), - dict(text=_('Revision...'), func=navigate, args=[None], - icon=gtk.STOCK_JUMP_TO), + dict(text=_('Revision...'), icon=gtk.STOCK_JUMP_TO, + func=lambda *a: self.show_goto_dialog()),   ] + bmenus),     (_('_Synchronize'), [ @@ -492,6 +494,7 @@
  if not path:   self.currevid = None   return False + self.prevrevid = self.currevid   self.currevid = graphview.get_revid_at_path(path)   self.ancestrybutton.set_sensitive(True)   if self.currevid != self.lastrevid: @@ -1858,6 +1861,10 @@
  rid = self.repo[revision].rev()   self.graphview.set_revision_id(rid, load=True)   + def goto_prev_sel(self): + if hasattr(self, 'prevrevid') and self.prevrevid: + self.goto_rev(self.prevrevid) +   def strip_rev(self, menuitem):   def strip_completed():   self.repo.invalidate()