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

thgconfig: treat emptry strings as unspecified

delete keys when their values are empty, treat them as unspecified.
This is valid behavior for everything but extensions, and we do not
try to configure those with this tool.

Fixes #137

Changeset 08d219779c6e

Parent 8c1d05232b74

by Steve Borho

Changes to one file · Browse files at 08d219779c6e Showing diff from parent 8c1d05232b74 Diff from another changeset...

 
564
565
566
567
 
568
569
570
 
564
565
566
 
567
568
569
570
@@ -564,7 +564,7 @@
    def record_new_value(self, cpath, newvalue, keephistory=True):   section, key = cpath.split('.', 1) - if newvalue == _unspecstr: + if newvalue == _unspecstr or newvalue == '':   try:   del self.ini[section][key]   except KeyError: