Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

sync: refresh() should not early out if .hg/hgrc has no [paths]

Changeset 3f4ba0121c56

Parent 0ced8feee37f

by Steve Borho

Changes to one file · Browse files at 3f4ba0121c56 Showing diff from parent 0ced8feee37f Diff from another changeset...

 
161
162
163
 
164
165
166
167
168
169
170
 
 
 
171
172
173
 
161
162
163
164
165
166
 
 
 
 
 
167
168
169
170
171
172
@@ -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