##// END OF EJS Templates
vfs: use 'vfs' module directly in 'test-parseindex'...
Pierre-Yves David -
r31250:6d44de27 default
parent child Browse files
Show More
@@ -26,7 +26,7 b' We approximate that by reducing the read'
26 26 summary: change foo
27 27
28 28 $ cat >> test.py << EOF
29 > from mercurial import changelog, scmutil
29 > from mercurial import changelog, vfs
30 30 > from mercurial.node import *
31 31 >
32 32 > class singlebyteread(object):
@@ -42,7 +42,7 b' We approximate that by reducing the read'
42 42 > return getattr(self.real, key)
43 43 >
44 44 > def opener(*args):
45 > o = scmutil.vfs(*args)
45 > o = vfs.vfs(*args)
46 46 > def wrapper(*a):
47 47 > f = o(*a)
48 48 > return singlebyteread(f)
@@ -67,8 +67,8 b' Test SEGV caused by bad revision passed '
67 67 $ cd a
68 68
69 69 $ python <<EOF
70 > from mercurial import changelog, scmutil
71 > cl = changelog.changelog(scmutil.vfs('.hg/store'))
70 > from mercurial import changelog, vfs
71 > cl = changelog.changelog(vfs.vfs('.hg/store'))
72 72 > print 'good heads:'
73 73 > for head in [0, len(cl) - 1, -1]:
74 74 > print'%s: %r' % (head, cl.reachableroots(0, [head], [0]))
@@ -147,8 +147,8 b' Test corrupted p1/p2 fields that could c'
147 147
148 148 $ cat <<EOF > test.py
149 149 > import sys
150 > from mercurial import changelog, scmutil
151 > cl = changelog.changelog(scmutil.vfs(sys.argv[1]))
150 > from mercurial import changelog, vfs
151 > cl = changelog.changelog(vfs.vfs(sys.argv[1]))
152 152 > n0, n1 = cl.node(0), cl.node(1)
153 153 > ops = [
154 154 > ('reachableroots',
General Comments 0
You need to be logged in to leave comments. Login now