Patchwork [22,of,22] vfs: use 'vfs' module directly in 'test-clone-uncompressed'

login
register
mail settings
Submitter Pierre-Yves David
Date March 8, 2017, 9:18 p.m.
Message ID <f6b5bf425231424552c1.1489007913@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/19020/
State Accepted
Headers show

Comments

Pierre-Yves David - March 8, 2017, 9:18 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1488458041 -3600
#      Thu Mar 02 13:34:01 2017 +0100
# Node ID f6b5bf425231424552c1ffcafe48f98ff1f19c07
# Parent  a87389d138d8581b48f57ff4222aeebe57ba3b07
# 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 f6b5bf425231
vfs: use 'vfs' module directly in 'test-clone-uncompressed'

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.
Augie Fackler - March 8, 2017, 10:40 p.m.
On Wed, Mar 08, 2017 at 10:18:33PM +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
> # Date 1488458041 -3600
> #      Thu Mar 02 13:34:01 2017 +0100
> # Node ID f6b5bf425231424552c1ffcafe48f98ff1f19c07
> # Parent  a87389d138d8581b48f57ff4222aeebe57ba3b07
> # 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 f6b5bf425231
> vfs: use 'vfs' module directly in 'test-clone-uncompressed'

Queued these, thanks. Congratulations on becoming the mq maintainer ;)

Patch

diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -60,12 +60,12 @@  while cloning
 
   $ cat > delayer.py <<EOF
   > import time
-  > from mercurial import extensions, scmutil
+  > from mercurial import extensions, vfs
   > def __call__(orig, self, path, *args, **kwargs):
   >     if path == 'data/f1.i':
   >         time.sleep(2)
   >     return orig(self, path, *args, **kwargs)
-  > extensions.wrapfunction(scmutil.vfs, '__call__', __call__)
+  > extensions.wrapfunction(vfs.vfs, '__call__', __call__)
   > EOF
 
 prepare repo with small and big file to cover both code paths in emitrevlogdata