##// END OF EJS Templates
Initial implementation of hello command for ssh
Matt Mackall -
r2419:b17eebc9 default
parent child Browse files
Show More
@@ -51,6 +51,18 b' class sshserver(object):'
51 h = self.repo.heads()
51 h = self.repo.heads()
52 self.respond(" ".join(map(hex, h)) + "\n")
52 self.respond(" ".join(map(hex, h)) + "\n")
53
53
54 def do_hello(self):
55 '''the hello command returns a set of lines describing various
56 interesting things about the server, in an RFC822-like format.
57 Currently the only one defined is "capabilities", which
58 consists of a line in the form:
59
60 capabilities: space separated list of tokens
61 '''
62
63 r = "capabilities:\n"
64 self.respond(r)
65
54 def do_lock(self):
66 def do_lock(self):
55 self.lock = self.repo.lock()
67 self.lock = self.repo.lock()
56 self.respond("")
68 self.respond("")
General Comments 0
You need to be logged in to leave comments. Login now