# HG changeset patch
# User Henrik Stuart <[email protected]>
# Date 1258187709 -3600
# Node ID a9876b0dff53f369d449f55fb3a96c64ca0f049a
# Parent 983d5a89967ba269725b9cf6bad2a24c4b004e20
history: do not undo common ancestor selection by context menu logic
diff --git a/tortoisehg/hgtk/history.py b/tortoisehg/hgtk/history.py
--- a/tortoisehg/hgtk/history.py
+++ b/tortoisehg/hgtk/history.py
@@ -776,7 +776,8 @@
def restore_single_sel(self, widget, *args):
self.tree.get_selection().set_mode(gtk.SELECTION_SINGLE)
- self.tree.get_selection().select_path(self.origsel)
+ if self.origsel:
+ self.tree.get_selection().select_path(self.origsel)
self.revrange = None
def tree_diff_context_menu(self):
@@ -1905,6 +1906,7 @@
ancestor = changelog.ancestor(lookup(rev1), lookup(rev2))
rev = changelog.rev(ancestor)
self.goto_rev(rev)
+ self.origsel = None
def thgrefresh(self, window):
self.reload_log()
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop