changeset 23902:bfa52f4ecf54

rollback: have an empty entry for the vfsmap in rollback This empty string key is used for the store. This will be needed to properly rollback backup in a future changesets.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 16 Jan 2015 19:29:16 -0800
parents 13268fde4c4d
children 426607be9c69
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Jan 16 14:54:24 2015 -0800
+++ b/mercurial/localrepo.py	Fri Jan 16 19:29:16 2015 -0800
@@ -1007,7 +1007,7 @@
 
         parents = self.dirstate.parents()
         self.destroying()
-        vfsmap = {'plain': self.vfs}
+        vfsmap = {'plain': self.vfs, '': self.svfs}
         transaction.rollback(self.svfs, vfsmap, 'undo', ui.warn)
         if self.vfs.exists('undo.bookmarks'):
             self.vfs.rename('undo.bookmarks', 'bookmarks')