# HG changeset patch # User Pierre-Yves David # Date 1678878788 -3600 # Node ID cab3defe6d3b664584748a048acbb54ef9a5ef13 # Parent 70ca1f09ceca9a6cef561636b4656365d3c0f8b9 transaction: raise on backup restoration error A few line above, similar errors in the truncation code result in raising the associated exception. We should do the same here. This means the transaction recover is more strict now, which might be a problem when running `hg recover` in a share different from the one where the transaction fails. However this has always been a problem and need to be be addressed independently. diff -r 70ca1f09ceca -r cab3defe6d3b mercurial/transaction.py --- a/mercurial/transaction.py Wed Mar 15 12:08:05 2023 +0100 +++ b/mercurial/transaction.py Wed Mar 15 12:13:08 2023 +0100 @@ -145,6 +145,7 @@ except IOError as exc: e_msg = stringutil.forcebytestr(exc) report(_(b"failed to recover %s (%s)\n") % (f, e_msg)) + raise else: target = f or b try: