changeset 23727:987ef74d8d01

transaction: use the right location when cleaning up backup file (issue4479) The location variable fetch from the loop and the one used to actually fetch it mismatched. We fix the name to ensure file outside of store are cleaned up.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 05 Jan 2015 15:00:02 -0800
parents d944492445fa
children 31d3f973d079
files mercurial/transaction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/transaction.py	Mon Jan 05 15:46:14 2015 -0600
+++ b/mercurial/transaction.py	Mon Jan 05 15:00:02 2015 -0800
@@ -397,7 +397,7 @@
             self.opener.unlink(self.journal)
         if self.opener.isfile(self._backupjournal):
             self.opener.unlink(self._backupjournal)
-            for _l, _f, b, c in self._backupentries:
+            for l, _f, b, c in self._backupentries:
                 if l not in self._vfsmap and c:
                     self.report("couldn't remote %s: unknown cache location"
                                 "%s\n" % (b, l))