Show More
@@ -51,6 +51,18 b' class sshserver(object):' | |||
|
51 | 51 | h = self.repo.heads() |
|
52 | 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 | 66 | def do_lock(self): |
|
55 | 67 | self.lock = self.repo.lock() |
|
56 | 68 | self.respond("") |
General Comments 0
You need to be logged in to leave comments.
Login now