changeset 31257:04b4286278ec

vfs: use 'vfs' module directly in 'hgext.largefile' 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:32:27 +0100
parents b023caa6dbae
children 8d3e8c8c9049
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py	Thu Mar 02 13:32:14 2017 +0100
+++ b/hgext/largefiles/lfutil.py	Thu Mar 02 13:32:27 2017 +0100
@@ -27,6 +27,7 @@
     pycompat,
     scmutil,
     util,
+    vfs as vfsmod,
 )
 
 shortname = '.hglf'
@@ -144,7 +145,7 @@
     '''
     vfs = repo.vfs
     lfstoredir = longname
-    opener = scmutil.vfs(vfs.join(lfstoredir))
+    opener = vfsmod.vfs(vfs.join(lfstoredir))
     lfdirstate = largefilesdirstate(opener, ui, repo.root,
                                      repo.dirstate._validate)