Mercurial > hg
comparison tests/test-push-http-bundle1.t @ 26272:59c410db8c68
readbundle: fix typo of None compression
The test simulates pre-d1b16a746db6 hgweb that sends "unbundle" capability
with no argument.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 18 Sep 2015 21:32:43 +0900 |
parents | d19787db6fe0 |
children | d6d3cf5fda6f |
comparison
equal
deleted
inserted
replaced
26271:a0eff7ebc2ae | 26272:59c410db8c68 |
---|---|
112 remote: changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:127.0.0.1: (glob) | 112 remote: changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:127.0.0.1: (glob) |
113 % serve errors | 113 % serve errors |
114 $ hg rollback | 114 $ hg rollback |
115 repository tip rolled back to revision 0 (undo serve) | 115 repository tip rolled back to revision 0 (undo serve) |
116 | 116 |
117 expect success, pre-d1b16a746db6 server supports the unbundle capability, but | |
118 has no parameter | |
119 | |
120 $ cat <<EOF > notcapable-unbundleparam.py | |
121 > from mercurial import extensions, httppeer | |
122 > def capable(orig, self, name): | |
123 > if name == 'unbundle': | |
124 > return True | |
125 > return orig(self, name) | |
126 > def uisetup(ui): | |
127 > extensions.wrapfunction(httppeer.httppeer, 'capable', capable) | |
128 > EOF | |
129 $ cp $HGRCPATH $HGRCPATH.orig | |
130 $ cat <<EOF >> $HGRCPATH | |
131 > [extensions] | |
132 > notcapable-unbundleparam = `pwd`/notcapable-unbundleparam.py | |
133 > EOF | |
134 $ req | |
135 pushing to http://localhost:$HGPORT/ | |
136 searching for changes | |
137 remote: adding changesets | |
138 remote: adding manifests | |
139 remote: adding file changes | |
140 remote: added 1 changesets with 1 changes to 1 files | |
141 remote: changegroup hook: * (glob) | |
142 % serve errors | |
143 $ hg rollback | |
144 repository tip rolled back to revision 0 (undo serve) | |
145 $ mv $HGRCPATH.orig $HGRCPATH | |
146 | |
117 expect push success, phase change failure | 147 expect push success, phase change failure |
118 | 148 |
119 $ cat > .hg/hgrc <<EOF | 149 $ cat > .hg/hgrc <<EOF |
120 > [web] | 150 > [web] |
121 > push_ssl = false | 151 > push_ssl = false |