[PATCH 19 of 22] vfs: use 'vfs' module directly in 'test-lock'
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Wed Mar 8 16:18:30 EST 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1488457982 -3600
# Thu Mar 02 13:33:02 2017 +0100
# Node ID 320c87d10ee2d7272949cde00c632b099a88bd15
# Parent f25cc9e5d5509dca6cc5b232690b26d3f1a60968
# 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 320c87d10ee2
vfs: use 'vfs' module directly in 'test-lock'
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/tests/test-lock.py b/tests/test-lock.py
--- a/tests/test-lock.py
+++ b/tests/test-lock.py
@@ -10,7 +10,7 @@ import unittest
from mercurial import (
error,
lock,
- scmutil,
+ vfs as vfsmod,
)
testlockname = 'testlock'
@@ -36,7 +36,7 @@ class teststate(object):
self._acquirecalled = False
self._releasecalled = False
self._postreleasecalled = False
- self.vfs = scmutil.vfs(dir, audit=False)
+ self.vfs = vfsmod.vfs(dir, audit=False)
self._pidoffset = pidoffset
def makelock(self, *args, **kwargs):
More information about the Mercurial-devel
mailing list