[PATCH 11 of 22] vfs: use 'vfs' module directly in 'mercurial.statichttprepo'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Mar 8 16:18:22 EST 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1488462541 -3600
#      Thu Mar 02 14:49:01 2017 +0100
# Node ID 57d03221148b7af86e438bd2347bd34ffc64df5f
# Parent  ce0764554a608df329eb80533bb9479c22b6ae39
# EXP-Topic vfs.cleanup
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 57d03221148b
vfs: use 'vfs' module directly in 'mercurial.statichttprepo'

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/mercurial/statichttprepo.py b/mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -24,6 +24,7 @@ from . import (
     store,
     url,
     util,
+    vfs as vfsmod,
 )
 
 urlerr = util.urlerr
@@ -86,7 +87,7 @@ def build_opener(ui, authinfo):
     urlopener = url.opener(ui, authinfo)
     urlopener.add_handler(byterange.HTTPRangeHandler())
 
-    class statichttpvfs(scmutil.abstractvfs):
+    class statichttpvfs(vfsmod.abstractvfs):
         def __init__(self, base):
             self.base = base
 


More information about the Mercurial-devel mailing list