diff hgext/transplant.py @ 31245:c1ebe18d5156

vfs: use 'vfs' module directly in 'hgext.transplant' Now that the 'vfs' classes moved in their own module, lets use the new module directly. We update code iteratively to help with possible bisect needs in the future.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 02 Mar 2017 13:31:39 +0100
parents 21fa3d3688f3
children 0199686a1a1c
line wrap: on
line diff
--- a/hgext/transplant.py	Thu Mar 02 13:31:32 2017 +0100
+++ b/hgext/transplant.py	Thu Mar 02 13:31:39 2017 +0100
@@ -35,6 +35,7 @@
     scmutil,
     smartset,
     util,
+    vfs as vfsmod,
 )
 
 class TransplantError(error.Abort):
@@ -60,7 +61,7 @@
         self.opener = opener
 
         if not opener:
-            self.opener = scmutil.vfs(self.path)
+            self.opener = vfsmod.vfs(self.path)
         self.transplants = {}
         self.dirty = False
         self.read()
@@ -103,7 +104,7 @@
     def __init__(self, ui, repo, opts):
         self.ui = ui
         self.path = repo.join('transplant')
-        self.opener = scmutil.vfs(self.path)
+        self.opener = vfsmod.vfs(self.path)
         self.transplants = transplants(self.path, 'transplants',
                                        opener=self.opener)
         def getcommiteditor():