# HG changeset patch # User Pierre-Yves David # Date 2017-03-02 12:32:27 # Node ID 04b4286278ecfb3c826b5a413d1bd6c0fd3dbaa8 # Parent b023caa6dbaebb9029ab467640a23361d23be95a 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. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -27,6 +27,7 @@ from mercurial import ( pycompat, scmutil, util, + vfs as vfsmod, ) shortname = '.hglf' @@ -144,7 +145,7 @@ def openlfdirstate(ui, repo, create=True ''' 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)