##// END OF EJS Templates
config: gather the path to edit through rcutil...
config: gather the path to edit through rcutil Using the common logic helps to reduce potential error when it changes

File last commit:

r49357:04688c51 default
r53324:8c509a70 default
Show More
wireprotohelpers.sh
34 lines | 795 B | application/x-sh | BashLexer
/ tests / wireprotohelpers.sh
Gregory Szorc
wireprotov2: send protocol settings frame from client...
r40168 MEDIATYPE=application/mercurial-exp-framing-0006
Gregory Szorc
tests: extract wire protocol shell helpers to standalone file...
r37500
sendhttpraw() {
hg --verbose debugwireproto --peer raw http://$LOCALIP:$HGPORT/
}
cat > dummycommands.py << EOF
from mercurial import (
wireprototypes,
Gregory Szorc
wireproto: rename wireproto to wireprotov1server (API)...
r37803 wireprotov1server,
Gregory Szorc
tests: extract wire protocol shell helpers to standalone file...
r37500 )
Augie Fackler
wireprotohelpers: add missing b prefixes...
r39096 @wireprotov1server.wireprotocommand(b'customreadonly', permission=b'pull')
Gregory Szorc
wireproto: make @wireprotocommand version 1 only by default...
r37558 def customreadonlyv1(repo, proto):
return wireprototypes.bytesresponse(b'customreadonly bytes response')
Augie Fackler
wireprotohelpers: add missing b prefixes...
r39096 @wireprotov1server.wireprotocommand(b'customreadwrite', permission=b'push')
Gregory Szorc
tests: extract wire protocol shell helpers to standalone file...
r37500 def customreadwrite(repo, proto):
return wireprototypes.bytesresponse(b'customreadwrite bytes response')
Gregory Szorc
wireproto: make @wireprotocommand version 1 only by default...
r37558
Gregory Szorc
tests: extract wire protocol shell helpers to standalone file...
r37500 EOF
cat >> $HGRCPATH << EOF
[extensions]
drawdag = $TESTDIR/drawdag.py
EOF
enabledummycommands() {
cat >> $HGRCPATH << EOF
[extensions]
dummycommands = $TESTTMP/dummycommands.py
EOF
}