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

stable status: catch OSError from repo.status()

Try not to barf when Python/Mercurial have a filename encoding argument.
Crashes from the status() thread are unhelpful.

Closes #1062

Changeset f71be5565076

Parent 56b42d08d603

by Steve Borho

Changes to one file · Browse files at f71be5565076 Showing diff from parent 56b42d08d603 Diff from another changeset...

 
760
761
762
763
 
764
765
766
 
768
769
770
771
 
772
773
774
 
760
761
762
 
763
764
765
766
 
768
769
770
 
771
772
773
774
@@ -760,7 +760,7 @@
  clean=clean,   unknown=unknown)   self.status = status - except (IOError, util.Abort), e: + except (OSError, IOError, util.Abort), e:   self.status_error = str(e)   self.subrepos = []   wctx = repo[None] @@ -768,7 +768,7 @@
  for s in wctx.substate:   if matcher(s) and wctx.sub(s).dirty():   self.subrepos.append(s) - except (IOError, error.ConfigError), e: + except (OSError, IOError, error.ConfigError), e:   self.status_error = str(e)     def status_wait(thread):