mercurial/wireproto.py
changeset 37489 6e6d68c2d39c
parent 37488 3b99eb028859
child 37490 3a91911c4343
equal deleted inserted replaced
37488:3b99eb028859 37489:6e6d68c2d39c
  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.