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

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.

Changeset 2fd6e63dbd17

Parent c4ec7968bc25

by Sune Foldager

Changes to one file · Browse files at 2fd6e63dbd17 Showing diff from parent c4ec7968bc25 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
327
328
329
330
 
331
332
333
 
327
328
329
 
330
331
332
333
@@ -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']