Mercurial > hg
changeset 22076:e59b5e5918a5
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 07 Aug 2014 11:56:32 -0700 |
parents | 2f0358275501 |
children | 2990ce46fc2d |
files | mercurial/transaction.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)