##// END OF EJS Templates
transaction: simplify `undo.backupfiles` file creation with a variable...
marmoute -
r48215:88439c6f default
parent child Browse files
Show More
@@ -633,9 +633,9 b' class transaction(util.transactional):'
633 """write transaction data for possible future undo call"""
633 """write transaction data for possible future undo call"""
634 if self._undoname is None:
634 if self._undoname is None:
635 return
635 return
636 undobackupfile = self._opener.open(
636
637 b"%s.backupfiles" % self._undoname, b'w'
637 undo_backup_path = b"%s.backupfiles" % self._undoname
638 )
638 undobackupfile = self._opener.open(undo_backup_path, b'w')
639 undobackupfile.write(b'%d\n' % version)
639 undobackupfile.write(b'%d\n' % version)
640 for l, f, b, c in self._backupentries:
640 for l, f, b, c in self._backupentries:
641 if not f: # temporary file
641 if not f: # temporary file
General Comments 0
You need to be logged in to leave comments. Login now