vfs: use 'vfs' module directly in 'mercurial.archival'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 02 Mar 2017 13:30:28 +0100
changeset 31245 7feab0e7702d
parent 31244 9b7a2ef4f27c
child 31246 8a0687a2be75
vfs: use 'vfs' module directly in 'mercurial.archival' 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.
mercurial/archival.py
--- a/mercurial/archival.py	Thu Mar 02 13:30:10 2017 +0100
+++ b/mercurial/archival.py	Thu Mar 02 13:30:28 2017 +0100
@@ -22,8 +22,8 @@
     encoding,
     error,
     match as matchmod,
-    scmutil,
     util,
+    vfs as vfsmod,
 )
 stringio = util.stringio
 
@@ -249,7 +249,7 @@
 
     def __init__(self, name, mtime):
         self.basedir = name
-        self.opener = scmutil.vfs(self.basedir)
+        self.opener = vfsmod.vfs(self.basedir)
 
     def addfile(self, name, mode, islink, data):
         if islink: