Show More
@@ -117,6 +117,38 b' expect success, server lacks the unbundl' | |||||
117 | $ hg rollback |
|
117 | $ hg rollback | |
118 | repository tip rolled back to revision 0 (undo serve) |
|
118 | repository tip rolled back to revision 0 (undo serve) | |
119 |
|
119 | |||
|
120 | expect success, pre-d1b16a746db6 server supports the unbundle capability, but | |||
|
121 | has no parameter | |||
|
122 | ||||
|
123 | $ cat <<EOF > notcapable-unbundleparam.py | |||
|
124 | > from mercurial import extensions, httppeer | |||
|
125 | > def capable(orig, self, name): | |||
|
126 | > if name == 'unbundle': | |||
|
127 | > return True | |||
|
128 | > return orig(self, name) | |||
|
129 | > def uisetup(ui): | |||
|
130 | > extensions.wrapfunction(httppeer.httppeer, 'capable', capable) | |||
|
131 | > EOF | |||
|
132 | $ cp $HGRCPATH $HGRCPATH.orig | |||
|
133 | $ cat <<EOF >> $HGRCPATH | |||
|
134 | > [extensions] | |||
|
135 | > notcapable-unbundleparam = `pwd`/notcapable-unbundleparam.py | |||
|
136 | > EOF | |||
|
137 | $ req | |||
|
138 | pushing to http://localhost:$HGPORT/ | |||
|
139 | searching for changes | |||
|
140 | remote: adding changesets | |||
|
141 | remote: adding manifests | |||
|
142 | remote: adding file changes | |||
|
143 | remote: added 1 changesets with 1 changes to 1 files | |||
|
144 | remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: draft -> public | |||
|
145 | remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> public | |||
|
146 | remote: changegroup hook: * (glob) | |||
|
147 | % serve errors | |||
|
148 | $ hg rollback | |||
|
149 | repository tip rolled back to revision 0 (undo serve) | |||
|
150 | $ mv $HGRCPATH.orig $HGRCPATH | |||
|
151 | ||||
120 | expect push success, phase change failure |
|
152 | expect push success, phase change failure | |
121 |
|
153 | |||
122 | $ cat > .hg/hgrc <<EOF |
|
154 | $ cat > .hg/hgrc <<EOF |
General Comments 0
You need to be logged in to leave comments.
Login now