Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

history: add 'visualize change' and 'diff to local' menu options

fixes #171

Changeset 11584ebdba06

Parent 8ab1e8e74ece

by Steve Borho

Changes to one file · Browse files at 11584ebdba06 Showing diff from parent 8ab1e8e74ece Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​history.py Stacked
 
326
327
328
 
 
329
330
331
 
475
476
477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
479
480
 
326
327
328
329
330
331
332
333
 
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
@@ -326,6 +326,8 @@
  def tree_context_menu(self):   _menu = gtk.Menu()   _menu.append(create_menu(_('di_splay'), self._show_status)) + _menu.append(create_menu(_('visualize change'), self._vdiff_change)) + _menu.append(create_menu(_('diff to local'), self._vdiff_local))   _menu.append(create_menu(_('_update'), self._checkout))   self._cmenu_merge = create_menu(_('_merge with'), self._merge)   _menu.append(self._cmenu_merge) @@ -475,6 +477,23 @@
  dlg.run()   dlg.hide()   + def _vdiff_change(self, menuitem, pats=[]): + from visdiff import FileSelectionDialog + rev = self.currow[treemodel.REVID] + dialog = FileSelectionDialog(pats, {'change' : rev}) + dialog.show_all() + dialog.run() + dialog.hide() + + def _vdiff_local(self, menuitem, pats=[]): + from visdiff import FileSelectionDialog + rev = self.currow[treemodel.REVID] + opts = {'rev' : ["%s:." % rev]} + dialog = FileSelectionDialog(pats, opts) + dialog.show_all() + dialog.run() + dialog.hide() +   def _diff_revs(self, menuitem):   from status import GStatus   rev0, rev1 = self._revs