tests/wireprotohelpers.sh
changeset 37785 b4d85bc122bd
parent 37780 8acd3a9ac4fd
child 39061 b3c6c194f33a
--- 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')