[Updated] D10842: transaction: explain why some recovery failed

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Thu Jun 17 13:30:40 UTC 2021


Closed by commit rHG22e21deed474: transaction: explain why some recovery failed (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10842?vs=28519&id=28590

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10842/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10842

AFFECTED FILES
  mercurial/transaction.py

CHANGE DETAILS

diff --git a/mercurial/transaction.py b/mercurial/transaction.py
--- a/mercurial/transaction.py
+++ b/mercurial/transaction.py
@@ -94,8 +94,9 @@
                 try:
                     util.copyfile(backuppath, filepath, checkambig=checkambig)
                     backupfiles.append(b)
-                except IOError:
-                    report(_(b"failed to recover %s\n") % f)
+                except IOError as exc:
+                    e_msg = stringutil.forcebytestr(exc)
+                    report(_(b"failed to recover %s (%s)\n") % (f, e_msg))
             else:
                 target = f or b
                 try:



To: marmoute, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210617/de1f41d5/attachment-0002.html>


More information about the Mercurial-patches mailing list