- skip-blame just b prefixes
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGb3c6c194f33a: wireprotohelpers: add missing b prefixes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
cat > dummycommands.py << EOF | cat > dummycommands.py << EOF | ||||
from mercurial import ( | from mercurial import ( | ||||
wireprototypes, | wireprototypes, | ||||
wireprotov1server, | wireprotov1server, | ||||
wireprotov2server, | wireprotov2server, | ||||
) | ) | ||||
@wireprotov1server.wireprotocommand('customreadonly', permission='pull') | @wireprotov1server.wireprotocommand(b'customreadonly', permission=b'pull') | ||||
def customreadonlyv1(repo, proto): | def customreadonlyv1(repo, proto): | ||||
return wireprototypes.bytesresponse(b'customreadonly bytes response') | return wireprototypes.bytesresponse(b'customreadonly bytes response') | ||||
@wireprotov2server.wireprotocommand('customreadonly', permission='pull') | @wireprotov2server.wireprotocommand(b'customreadonly', permission=b'pull') | ||||
def customreadonlyv2(repo, proto): | def customreadonlyv2(repo, proto): | ||||
return wireprototypes.cborresponse(b'customreadonly bytes response') | return wireprototypes.cborresponse(b'customreadonly bytes response') | ||||
@wireprotov1server.wireprotocommand('customreadwrite', permission='push') | @wireprotov1server.wireprotocommand(b'customreadwrite', permission=b'push') | ||||
def customreadwrite(repo, proto): | def customreadwrite(repo, proto): | ||||
return wireprototypes.bytesresponse(b'customreadwrite bytes response') | return wireprototypes.bytesresponse(b'customreadwrite bytes response') | ||||
@wireprotov2server.wireprotocommand('customreadwrite', permission='push') | @wireprotov2server.wireprotocommand(b'customreadwrite', permission=b'push') | ||||
def customreadwritev2(repo, proto): | def customreadwritev2(repo, proto): | ||||
return wireprototypes.cborresponse(b'customreadwrite bytes response') | return wireprototypes.cborresponse(b'customreadwrite bytes response') | ||||
EOF | EOF | ||||
cat >> $HGRCPATH << EOF | cat >> $HGRCPATH << EOF | ||||
[extensions] | [extensions] | ||||
drawdag = $TESTDIR/drawdag.py | drawdag = $TESTDIR/drawdag.py | ||||
EOF | EOF |