# HG changeset patch
# User Sune Foldager <[email protected]>
# Date 1252571258 -7200
# Node ID 2fd6e63dbd171959d0ee45c240924d6406f39b17
# Parent c4ec7968bc252bbaddb11a223d80bcdec676416f
history: fix load of older and non-existent option files
In general this makes load_settings more roboust by not risking
a half-loaded set of options, which will always fail later on due
to the global try-except around the load logic.
diff --git a/hggtk/history.py b/hggtk/history.py
--- a/hggtk/history.py
+++ b/hggtk/history.py
@@ -327,7 +327,7 @@
self.branch_color = settings.get('branch-color', False)
self.show_filterbar = settings.get('show-filterbar', True)
for col in ('rev', 'date', 'id', 'branch', 'utc', 'age', 'tag'):
- vis = settings['glog-vis-'+col]
+ vis = settings.get('glog-vis-'+col, False)
self.showcol[col] = vis
self.graphcol = settings['graphcol']
self.compactgraph = settings['compactgraph']
------------------------------------------------------------------------------
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