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.
tortoisehg/hgtk/history.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
# HG changeset patch
# User Peer Sommerlund <p...@users.sourceforge.net>
# Date 1253690456 -7200
# Node ID ba55fa59a09f1f692320659c8d993c9a546995f5
# Parent 2bfe0921b4cec3f908fe260da66785eddd7477f5
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 2bfe0921b4ce -r ba55fa59a09f tortoisehg/hgtk/history.py
--- a/tortoisehg/hgtk/history.py Tue Sep 22 13:30:26 2009 -0500
+++ b/tortoisehg/hgtk/history.py Wed Sep 23 09:20:56 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