Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

hgtk hgignore: catch common errors from repo.status() (closes #1767)

Changeset bc0ba038de2e

Parent 33424a62adf9

by Steve Borho

Changes to one file · Browse files at bc0ba038de2e Showing diff from parent 33424a62adf9 Diff from another changeset...

 
224
225
226
227
 
 
 
 
 
 
228
229
230
 
224
225
226
 
227
228
229
230
231
232
233
234
235
@@ -224,7 +224,12 @@
  def refresh(self):   hglib.invalidaterepo(self.repo)   matcher = match.always(self.repo.root, self.repo.root) - unknown = self.repo.status(match=matcher, unknown=True)[4] + try: + unknown = self.repo.status(match=matcher, unknown=True)[4] + except (EnvironmentError, util.Abort), inst: + gdialog.Prompt(_('Error while reading status'), + hglib.toutf(str(inst)), self).run() + return   self.unkmodel.clear()   for u in unknown:   self.unkmodel.append([hglib.toutf(u), u])