mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
vfs: use 'vfs' module directly in 'mercurial.unionrepo'
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.
This commit is contained in:
parent
47339a5607
commit
5fa2b0e756
@ -27,8 +27,8 @@ from . import (
|
||||
pathutil,
|
||||
pycompat,
|
||||
revlog,
|
||||
scmutil,
|
||||
util,
|
||||
vfs as vfsmod,
|
||||
)
|
||||
|
||||
class unionrevlog(revlog.revlog):
|
||||
@ -39,7 +39,7 @@ class unionrevlog(revlog.revlog):
|
||||
#
|
||||
# To differentiate a rev in the second revlog from a rev in the revlog,
|
||||
# we check revision against repotiprev.
|
||||
opener = scmutil.readonlyvfs(opener)
|
||||
opener = vfsmod.readonlyvfs(opener)
|
||||
revlog.revlog.__init__(self, opener, indexfile)
|
||||
self.revlog2 = revlog2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user