Show More
@@ -20,19 +20,19 from mercurial import ( | |||
|
20 | 20 | wireprotov2server, |
|
21 | 21 | ) |
|
22 | 22 | |
|
23 | @wireprotov1server.wireprotocommand('customreadonly', permission='pull') | |
|
23 | @wireprotov1server.wireprotocommand(b'customreadonly', permission=b'pull') | |
|
24 | 24 | def customreadonlyv1(repo, proto): |
|
25 | 25 | return wireprototypes.bytesresponse(b'customreadonly bytes response') |
|
26 | 26 | |
|
27 | @wireprotov2server.wireprotocommand('customreadonly', permission='pull') | |
|
27 | @wireprotov2server.wireprotocommand(b'customreadonly', permission=b'pull') | |
|
28 | 28 | def customreadonlyv2(repo, proto): |
|
29 | 29 | return wireprototypes.cborresponse(b'customreadonly bytes response') |
|
30 | 30 | |
|
31 | @wireprotov1server.wireprotocommand('customreadwrite', permission='push') | |
|
31 | @wireprotov1server.wireprotocommand(b'customreadwrite', permission=b'push') | |
|
32 | 32 | def customreadwrite(repo, proto): |
|
33 | 33 | return wireprototypes.bytesresponse(b'customreadwrite bytes response') |
|
34 | 34 | |
|
35 | @wireprotov2server.wireprotocommand('customreadwrite', permission='push') | |
|
35 | @wireprotov2server.wireprotocommand(b'customreadwrite', permission=b'push') | |
|
36 | 36 | def customreadwritev2(repo, proto): |
|
37 | 37 | return wireprototypes.cborresponse(b'customreadwrite bytes response') |
|
38 | 38 | EOF |
General Comments 0
You need to be logged in to leave comments.
Login now