Show More
@@ -60,12 +60,12 b' while cloning' | |||||
60 |
|
60 | |||
61 | $ cat > delayer.py <<EOF |
|
61 | $ cat > delayer.py <<EOF | |
62 | > import time |
|
62 | > import time | |
63 |
> from mercurial import extensions, s |
|
63 | > from mercurial import extensions, vfs | |
64 | > def __call__(orig, self, path, *args, **kwargs): |
|
64 | > def __call__(orig, self, path, *args, **kwargs): | |
65 | > if path == 'data/f1.i': |
|
65 | > if path == 'data/f1.i': | |
66 | > time.sleep(2) |
|
66 | > time.sleep(2) | |
67 | > return orig(self, path, *args, **kwargs) |
|
67 | > return orig(self, path, *args, **kwargs) | |
68 |
> extensions.wrapfunction(s |
|
68 | > extensions.wrapfunction(vfs.vfs, '__call__', __call__) | |
69 | > EOF |
|
69 | > EOF | |
70 |
|
70 | |||
71 | prepare repo with small and big file to cover both code paths in emitrevlogdata |
|
71 | prepare repo with small and big file to cover both code paths in emitrevlogdata |
General Comments 0
You need to be logged in to leave comments.
Login now