recover: catch any exception, not just Exception
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 15:38:24 -0500
changeset 25183 0d0ed375fbdf
parent 25182 ee665d3bf6dd
child 25184 819cd397e306
recover: catch any exception, not just Exception We want recover to be rock solid.
mercurial/transaction.py
--- 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