diff mercurial/bookmarks.py @ 23317:197e17be5407

transaction: use 'location' instead of 'vfs' objects for file generation The argument is now a location name. The location must be present in the 'vfsmap' provided to the transaction at creation time.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 17 Oct 2014 20:53:42 -0700
parents c35ffa4249ca
children e06daad65f85
line wrap: on
line diff
--- a/mercurial/bookmarks.py	Wed Nov 05 01:59:32 2014 +0000
+++ b/mercurial/bookmarks.py	Fri Oct 17 20:53:42 2014 -0700
@@ -52,7 +52,7 @@
 
         The transaction is then responsible for updating the file content."""
         tr.addfilegenerator('bookmarks', ('bookmarks',), self._write,
-                            vfs=self._repo.vfs)
+                            location='plain')
         tr.hookargs['bookmark_moved'] = '1'
 
     def write(self):