# HG changeset patch # User Pierre-Yves David # Date 1488457899 -3600 # Node ID c1ebe18d51565f85cc8d8a60f13a714abea59772 # Parent 636f55b9ba230f95f966f7fc9cb48f90d06d5ba4 vfs: use 'vfs' module directly in 'hgext.transplant' 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 -r 636f55b9ba23 -r c1ebe18d5156 hgext/transplant.py --- a/hgext/transplant.py Thu Mar 02 13:31:32 2017 +0100 +++ b/hgext/transplant.py Thu Mar 02 13:31:39 2017 +0100 @@ -35,6 +35,7 @@ scmutil, smartset, util, + vfs as vfsmod, ) class TransplantError(error.Abort): @@ -60,7 +61,7 @@ self.opener = opener if not opener: - self.opener = scmutil.vfs(self.path) + self.opener = vfsmod.vfs(self.path) self.transplants = {} self.dirty = False self.read() @@ -103,7 +104,7 @@ def __init__(self, ui, repo, opts): self.ui = ui self.path = repo.join('transplant') - self.opener = scmutil.vfs(self.path) + self.opener = vfsmod.vfs(self.path) self.transplants = transplants(self.path, 'transplants', opener=self.opener) def getcommiteditor():