[Updated] D10843: transaction: extract message about different version in a constants
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Jun 17 13:30:57 UTC 2021
Closed by commit rHG0e4e9c1b4cc8: transaction: extract message about different version in a constants (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/D10843?vs=28520&id=28591
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10843/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10843
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
@@ -702,6 +702,11 @@
self._releasefn = None # Help prevent cycles.
+BAD_VERSION_MSG = _(
+ b"journal was created by a different version of Mercurial\n"
+)
+
+
def rollback(opener, vfsmap, file, report, checkambigfiles=None):
"""Rolls back the transaction contained in the given file
@@ -746,12 +751,7 @@
l, f, b, c = line.split(b'\0')
backupentries.append((l, f, b, bool(c)))
else:
- report(
- _(
- b"journal was created by a different version of "
- b"Mercurial\n"
- )
- )
+ report(BAD_VERSION_MSG)
_playback(
file,
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/c1190220/attachment-0002.html>
More information about the Mercurial-patches
mailing list