Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable history: menu entry to select common ancestor

add a menu entry to tree diff context menu to
select the common ancestor between two
selected revisions.

Changeset 3dbe2fb52376

Parent ebf6cbdb680a

by Emmanuel Rosa

Changes to one file · Browse files at 3dbe2fb52376 Showing diff from parent ebf6cbdb680a Diff from another changeset...

 
824
825
826
 
 
 
 
827
828
829
 
1874
1875
1876
 
 
 
 
 
 
 
 
1877
1878
1879
 
824
825
826
827
828
829
830
831
832
833
 
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
@@ -824,6 +824,10 @@
  m.append(create_menu(_('qimport from here to selected'),   self.qimport_revs))   + m.append_sep() + m.append(create_menu(_('Select common ancestor revision'), + self.select_common_ancestor)) +   menu = m.create_menu()   menu.connect_after('selection-done', self.restore_single_sel)   menu.show_all() @@ -1874,6 +1878,14 @@
  self.reload_log()   self.changeview.clear()   + def select_common_ancestor(self, menuitem): + rev1, rev2 = self.revrange + changelog = self.repo.changelog + lookup = self.repo.lookup + ancestor = changelog.ancestor(lookup(rev1), lookup(rev2)) + rev = changelog.rev(ancestor) + self.graphview.set_revision_id(rev, True) +   def thgrefresh(self, window):   self.reload_log()