Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

thgconfig: add fallback path when no rcpath options are writeable

Changeset 1392bbfc04ca

Parent a90ac18314da

by Steve Borho

Changes to one file · Browse files at 1392bbfc04ca Showing diff from parent a90ac18314da Diff from another changeset...

 
1063
1064
1065
 
 
 
 
 
 
 
 
1066
1067
1068
 
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
@@ -1063,6 +1063,14 @@
  break   except (IOError, OSError):   pass + else: + gdialog.Prompt(_('Unable to create a Mercurial.ini file'), + _('Insufficient access rights, reverting to read-only' + 'mode.'), self).run() + from mercurial import config + self.fn = rcpath[0] + cfg = config.config() + return cfg   self.fn = fn   try:   import iniparse