--- a/tests/wireprotohelpers.sh Mon Apr 16 22:10:02 2018 -0700
+++ b/tests/wireprotohelpers.sh Mon Apr 16 22:21:54 2018 -0700
@@ -16,11 +16,11 @@
cat > dummycommands.py << EOF
from mercurial import (
wireprototypes,
+ wireprotov1server,
wireprotov2server,
- wireproto,
)
-@wireproto.wireprotocommand('customreadonly', permission='pull')
+@wireprotov1server.wireprotocommand('customreadonly', permission='pull')
def customreadonlyv1(repo, proto):
return wireprototypes.bytesresponse(b'customreadonly bytes response')
@@ -28,7 +28,7 @@
def customreadonlyv2(repo, proto):
return wireprototypes.cborresponse(b'customreadonly bytes response')
-@wireproto.wireprotocommand('customreadwrite', permission='push')
+@wireprotov1server.wireprotocommand('customreadwrite', permission='push')
def customreadwrite(repo, proto):
return wireprototypes.bytesresponse(b'customreadwrite bytes response')