Changeset 3f4ba0121c56…
Parent 0ced8feee37f…
by
Changes to one file · Browse files at 3f4ba0121c56 Showing diff from parent 0ced8feee37f Diff from another changeset...
@@ -161,13 +161,12 @@ self.reload()
def reload(self):
+ self.paths = {}
fn = os.path.join(self.root, '.hg', 'hgrc')
fn, cfg = loadIniFile([fn], self)
- self.paths = {}
- if 'paths' not in cfg:
- return
- for alias in cfg['paths']:
- self.paths[ alias ] = cfg['paths'][ alias ]
+ if 'paths' in cfg:
+ for alias in cfg['paths']:
+ self.paths[ alias ] = cfg['paths'][ alias ]
tm = PathsModel(self.paths, self)
self.tv.setModel(tm)
self.cachedpp = self.repo.postpull
|
Loading...