equal
deleted
inserted
replaced
1008 @wireprotocommand('heads', permission='pull', transportpolicy=POLICY_V1_ONLY) |
1008 @wireprotocommand('heads', permission='pull', transportpolicy=POLICY_V1_ONLY) |
1009 def heads(repo, proto): |
1009 def heads(repo, proto): |
1010 h = repo.heads() |
1010 h = repo.heads() |
1011 return wireprototypes.bytesresponse(encodelist(h) + '\n') |
1011 return wireprototypes.bytesresponse(encodelist(h) + '\n') |
1012 |
1012 |
1013 @wireprotocommand('hello', permission='pull') |
1013 @wireprotocommand('hello', permission='pull', transportpolicy=POLICY_V1_ONLY) |
1014 def hello(repo, proto): |
1014 def hello(repo, proto): |
1015 """Called as part of SSH handshake to obtain server info. |
1015 """Called as part of SSH handshake to obtain server info. |
1016 |
1016 |
1017 Returns a list of lines describing interesting things about the |
1017 Returns a list of lines describing interesting things about the |
1018 server, in an RFC822-like format. |
1018 server, in an RFC822-like format. |