merge with stable
authorMatt Mackall <mpm@selenic.com>
Sat, 23 May 2015 15:55:04 -0500
changeset 25264 605b1d32c1c0
parent 25262 5a809deb88e6 (current diff)
parent 25263 fd905b2bea59 (diff)
child 25269 46bf4983cf31
merge with stable
mercurial/transaction.py
--- a/mercurial/transaction.py	Fri May 22 21:19:08 2015 -0400
+++ b/mercurial/transaction.py	Sat May 23 15:55:04 2015 -0500
@@ -222,7 +222,7 @@
     def _addbackupentry(self, entry):
         """register a new backup entry and write it to disk"""
         self._backupentries.append(entry)
-        self._backupmap[file] = len(self._backupentries) - 1
+        self._backupmap[entry] = len(self._backupentries) - 1
         self._backupsfile.write("%s\0%s\0%s\0%d\n" % entry)
         self._backupsfile.flush()