mercurial/repair.py
changeset 25660 328739ea70c3
parent 25652 2882d6886919
child 25845 7e3bb3e1bfa7
equal deleted inserted replaced
25659:d60678a567a9 25660:328739ea70c3
   203 
   203 
   204         # remove undo files
   204         # remove undo files
   205         for undovfs, undofile in repo.undofiles():
   205         for undovfs, undofile in repo.undofiles():
   206             try:
   206             try:
   207                 undovfs.unlink(undofile)
   207                 undovfs.unlink(undofile)
   208             except OSError, e:
   208             except OSError as e:
   209                 if e.errno != errno.ENOENT:
   209                 if e.errno != errno.ENOENT:
   210                     ui.warn(_('error removing %s: %s\n') %
   210                     ui.warn(_('error removing %s: %s\n') %
   211                             (undovfs.join(undofile), str(e)))
   211                             (undovfs.join(undofile), str(e)))
   212 
   212 
   213         for m in updatebm:
   213         for m in updatebm: