rollback: have an empty entry for the vfsmap in rollback
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 16 Jan 2015 19:29:16 -0800
changeset 23902 bfa52f4ecf54
parent 23901 13268fde4c4d
child 23903 426607be9c69
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.
mercurial/localrepo.py
--- 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')