comparison mercurial/transaction.py @ 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 7559dc8c4238
children d486e52352e8
comparison
equal deleted inserted replaced
23726:d944492445fa 23727:987ef74d8d01
395 self.after() 395 self.after()
396 if self.opener.isfile(self.journal): 396 if self.opener.isfile(self.journal):
397 self.opener.unlink(self.journal) 397 self.opener.unlink(self.journal)
398 if self.opener.isfile(self._backupjournal): 398 if self.opener.isfile(self._backupjournal):
399 self.opener.unlink(self._backupjournal) 399 self.opener.unlink(self._backupjournal)
400 for _l, _f, b, c in self._backupentries: 400 for l, _f, b, c in self._backupentries:
401 if l not in self._vfsmap and c: 401 if l not in self._vfsmap and c:
402 self.report("couldn't remote %s: unknown cache location" 402 self.report("couldn't remote %s: unknown cache location"
403 "%s\n" % (b, l)) 403 "%s\n" % (b, l))
404 continue 404 continue
405 vfs = self._vfsmap[l] 405 vfs = self._vfsmap[l]