[Updated] D10846: transaction: simplify `undo.backupfiles` file creation with a variable
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Jun 17 13:31:16 UTC 2021
Closed by commit rHG88439c6fbafc: transaction: simplify `undo.backupfiles` file creation with a variable (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/D10846?vs=28523&id=28593
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10846/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10846
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
@@ -633,9 +633,9 @@
"""write transaction data for possible future undo call"""
if self._undoname is None:
return
- undobackupfile = self._opener.open(
- b"%s.backupfiles" % self._undoname, b'w'
- )
+
+ undo_backup_path = b"%s.backupfiles" % self._undoname
+ undobackupfile = self._opener.open(undo_backup_path, b'w')
undobackupfile.write(b'%d\n' % version)
for l, f, b, c in self._backupentries:
if not f: # temporary 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/2b7c3ba0/attachment-0002.html>
More information about the Mercurial-patches
mailing list