# HG changeset patch
# User Peer Sommerlund <p...@users.sourceforge.net>
# Date 1253604146 -7200
# Node ID 89b6a6ab18940f845af6a445619b5c2fb5657dc4
# Parent 7b7a8050f41bf0442767e02bf926f29cf7532ff6
history: Preserve branch selection when compact-graph is toggled
The new toggles in the View menu cause a clean reload.
If a filter previously passed a parameter to reload_log this could
be cleared. This was the case for the branch filter, so toggling
compact graph while a branch was selected would clear the
branch selection.
diff -r 7b7a8050f41b -r 89b6a6ab1894 tortoisehg/hgtk/history.py
--- a/tortoisehg/hgtk/history.py Tue Sep 22 00:05:04 2009 +0200
+++ b/tortoisehg/hgtk/history.py Tue Sep 22 09:22:26 2009 +0200
@@ -401,7 +401,9 @@
opts = {'date': None, 'no_merges':False, 'only_merges':False,
'keyword':[], 'branch':None, 'pats':[], 'filehist':None,
'revrange':[], 'revlist':[], 'noheads':False,
- 'branch-view':self.compactgraph, 'rev':[] }
+ 'branch-view':False, 'rev':[] }
+ if self.opts is not None: opts = self.opts
+ opts['branch-view'] = self.compactgraph
opts.update(kwopts)
# handle strips, rebases, etc
@@ -479,6 +481,9 @@
if hasattr(self, 'mqwidget'):
self.mqwidget.refresh()
+ # Remember options to next time reload_log is called
+ self.opts = opts
+
def tree_context_menu(self):
m = gtk.Menu()
m.append(create_menu(_('visualize change'), self.vdiff_change))
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop