Mercurial > hg
changeset 31250:6d44de27790c
vfs: use 'vfs' module directly in 'test-parseindex'
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.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 02 Mar 2017 13:33:16 +0100 |
parents | e067741d4607 |
children | 34d57ddaf9f2 |
files | tests/test-parseindex.t |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-parseindex.t Thu Mar 02 13:33:02 2017 +0100 +++ b/tests/test-parseindex.t Thu Mar 02 13:33:16 2017 +0100 @@ -26,7 +26,7 @@ summary: change foo $ cat >> test.py << EOF - > from mercurial import changelog, scmutil + > from mercurial import changelog, vfs > from mercurial.node import * > > class singlebyteread(object): @@ -42,7 +42,7 @@ > return getattr(self.real, key) > > def opener(*args): - > o = scmutil.vfs(*args) + > o = vfs.vfs(*args) > def wrapper(*a): > f = o(*a) > return singlebyteread(f) @@ -67,8 +67,8 @@ $ cd a $ python <<EOF - > from mercurial import changelog, scmutil - > cl = changelog.changelog(scmutil.vfs('.hg/store')) + > from mercurial import changelog, vfs + > cl = changelog.changelog(vfs.vfs('.hg/store')) > print 'good heads:' > for head in [0, len(cl) - 1, -1]: > print'%s: %r' % (head, cl.reachableroots(0, [head], [0])) @@ -147,8 +147,8 @@ $ cat <<EOF > test.py > import sys - > from mercurial import changelog, scmutil - > cl = changelog.changelog(scmutil.vfs(sys.argv[1])) + > from mercurial import changelog, vfs + > cl = changelog.changelog(vfs.vfs(sys.argv[1])) > n0, n1 = cl.node(0), cl.node(1) > ops = [ > ('reachableroots',