transaction: use `self.journal` to create backup file
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 07 Aug 2014 11:56:32 -0700
changeset 22076 e59b5e5918a5
parent 22075 2f0358275501
child 22077 2990ce46fc2d
transaction: use `self.journal` to create backup file Transaction journal name is "journal" in most case, but it can be something else. We use the appropriate attribute to create the file.
mercurial/transaction.py
--- a/mercurial/transaction.py	Tue Jun 17 20:55:06 2014 -0700
+++ b/mercurial/transaction.py	Thu Aug 07 11:56:32 2014 -0700
@@ -154,7 +154,7 @@
 
         if file in self.map or file in self.backupmap:
             return
-        backupfile = "journal.%s" % file
+        backupfile = "%s.%s" % (self.journal, file)
         if self.opener.exists(file):
             filepath = self.opener.join(file)
             backuppath = self.opener.join(backupfile)