mercurial/transaction.py
changeset 25264 605b1d32c1c0
parent 25183 0d0ed375fbdf
parent 25263 fd905b2bea59
child 25302 bcb17d7dbec2
--- 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()