Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.6, 0.8, and 0.8.1

thgconfig: prevent broken paths from being stored

Mercurial and thg react badly to broken config files, so try to
prevent them.

Fixes #201

Changeset c593f057d41b

Parent 5f277922fca3

by Steve Borho

Changes to one file · Browse files at c593f057d41b Showing diff from parent 5f277922fca3 Diff from another changeset...

 
15
16
17
 
18
19
20
 
596
597
598
 
 
 
 
599
600
601
 
15
16
17
18
19
20
21
 
597
598
599
600
601
602
603
604
605
606
@@ -15,6 +15,7 @@
 import shlib  import shelve  import iniparse +import gdialog    _unspecstr = '<unspecified>'   @@ -596,6 +597,10 @@
  refreshlist = []   for row in self.pathdata:   name = fromutf(row[0]) + if not name: + gdialog.Prompt(_('Invalid path'), + _('Skipped saving path with no alias'), self).run() + continue   path = fromutf(row[1])   cpath = '.'.join(['paths', name])   self.record_new_value(cpath, path, False)