changeset 25183:0d0ed375fbdf

recover: catch any exception, not just Exception We want recover to be rock solid.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 15:38:24 -0500
parents ee665d3bf6dd
children 819cd397e306
files mercurial/transaction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/transaction.py	Mon May 18 15:33:21 2015 -0500
+++ b/mercurial/transaction.py	Mon May 18 15:38:24 2015 -0500
@@ -496,7 +496,7 @@
                 _playback(self.journal, self.report, self.opener, self._vfsmap,
                           self.entries, self._backupentries, False)
                 self.report(_("rollback completed\n"))
-            except Exception:
+            except BaseException:
                 self.report(_("rollback failed - please run hg recover\n"))
         finally:
             self.journal = None