mercurial/transaction.py
branchstable
changeset 25263 fd905b2bea59
parent 24721 774ee9800146
child 25264 605b1d32c1c0
child 25294 b1b89a0a606d
--- a/mercurial/transaction.py	Fri May 22 11:54:43 2015 -0300
+++ b/mercurial/transaction.py	Fri May 22 12:13:18 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()