Show More
@@ -59,7 +59,7 b' successful force push' | |||||
59 | adding file changes |
|
59 | adding file changes | |
60 | added 0 changesets with 0 changes to 1 files |
|
60 | added 0 changesets with 0 changes to 1 files | |
61 |
|
61 | |||
62 | successful push |
|
62 | successful push, list of heads | |
63 |
|
63 | |||
64 | $ QUERY_STRING="cmd=unbundle&heads=f7b1eb17ad24730a1651fccd46c43826d1bbc2ac"; export QUERY_STRING |
|
64 | $ QUERY_STRING="cmd=unbundle&heads=f7b1eb17ad24730a1651fccd46c43826d1bbc2ac"; export QUERY_STRING | |
65 | $ python hgweb.cgi <bundle.hg >page3 2>&1 |
|
65 | $ python hgweb.cgi <bundle.hg >page3 2>&1 | |
@@ -72,3 +72,17 b' successful push' | |||||
72 | adding manifests |
|
72 | adding manifests | |
73 | adding file changes |
|
73 | adding file changes | |
74 | added 0 changesets with 0 changes to 1 files |
|
74 | added 0 changesets with 0 changes to 1 files | |
|
75 | ||||
|
76 | successful push, SHA1 hash of heads (unbundlehash capability) | |||
|
77 | ||||
|
78 | $ QUERY_STRING="cmd=unbundle&heads=686173686564 5a785a5f9e0d433b88ed862b206b011b0c3a9d13"; export QUERY_STRING | |||
|
79 | $ python hgweb.cgi <bundle.hg >page4 2>&1 | |||
|
80 | $ cat page4 | |||
|
81 | Status: 200 Script output follows\r (esc) | |||
|
82 | Content-Type: application/mercurial-0.1\r (esc) | |||
|
83 | \r (esc) | |||
|
84 | 1 | |||
|
85 | adding changesets | |||
|
86 | adding manifests | |||
|
87 | adding file changes | |||
|
88 | added 0 changesets with 0 changes to 1 files |
@@ -66,6 +66,32 b' expect success' | |||||
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 | |||
|
70 | ||||
|
71 | $ cat > unbundlehash-off.py << EOF | |||
|
72 | > from mercurial import extensions, repo | |||
|
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 | |||
|
83 | pushing to http://localhost:$HGPORT/ | |||
|
84 | searching for changes | |||
|
85 | remote: adding changesets | |||
|
86 | remote: adding manifests | |||
|
87 | remote: adding file changes | |||
|
88 | remote: added 1 changesets with 1 changes to 1 files | |||
|
89 | remote: changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_URL=remote:http:*: (glob) | |||
|
90 | % serve errors | |||
|
91 | $ hg rollback | |||
|
92 | repository tip rolled back to revision 0 (undo serve) | |||
|
93 | working directory now based on revision 0 | |||
|
94 | ||||
69 | expect authorization error: all users denied |
|
95 | expect authorization error: all users denied | |
70 |
|
96 | |||
71 | $ echo '[web]' > .hg/hgrc |
|
97 | $ echo '[web]' > .hg/hgrc |
General Comments 0
You need to be logged in to leave comments.
Login now