equal
deleted
inserted
replaced
66 repository tip rolled back to revision 0 (undo serve) |
66 repository tip rolled back to revision 0 (undo serve) |
67 working directory now based on revision 0 |
67 working directory now based on revision 0 |
68 |
68 |
69 expect success, server lacks the unbundlehash capability |
69 expect success, server lacks the unbundlehash capability |
70 |
70 |
71 $ cat > unbundlehash-off.py << EOF |
71 $ CAP=unbundlehash |
72 > from mercurial import extensions, repo |
72 $ . "$TESTDIR/notcapable" |
73 > def extsetup(): |
|
74 > extensions.wrapfunction(repo.repository, 'capable', wrapper) |
|
75 > def wrapper(orig, self, name, *args, **kwargs): |
|
76 > if name == 'unbundlehash': |
|
77 > return False |
|
78 > return orig(self, name, *args, **kwargs) |
|
79 > EOF |
|
80 $ echo '[extensions]' >> .hg/hgrc |
|
81 $ echo "unbundlehash-off = `pwd`/unbundlehash-off.py" >> .hg/hgrc |
|
82 $ req |
73 $ req |
83 pushing to http://localhost:$HGPORT/ |
74 pushing to http://localhost:$HGPORT/ |
84 searching for changes |
75 searching for changes |
85 remote: adding changesets |
76 remote: adding changesets |
86 remote: adding manifests |
77 remote: adding manifests |