Show More
@@ -621,6 +621,7 b' def hello(repo, proto):' | |||||
621 | ''' |
|
621 | ''' | |
622 | return "capabilities: %s\n" % (capabilities(repo, proto)) |
|
622 | return "capabilities: %s\n" % (capabilities(repo, proto)) | |
623 |
|
623 | |||
|
624 | @wireprotocommand('listkeys', 'namespace') | |||
624 | def listkeys(repo, proto, namespace): |
|
625 | def listkeys(repo, proto, namespace): | |
625 | d = repo.listkeys(encoding.tolocal(namespace)).items() |
|
626 | d = repo.listkeys(encoding.tolocal(namespace)).items() | |
626 | t = '\n'.join(['%s\t%s' % (encoding.fromlocal(k), encoding.fromlocal(v)) |
|
627 | t = '\n'.join(['%s\t%s' % (encoding.fromlocal(k), encoding.fromlocal(v)) | |
@@ -793,7 +794,6 b' def unbundle(repo, proto, heads):' | |||||
793 | os.unlink(tempname) |
|
794 | os.unlink(tempname) | |
794 |
|
795 | |||
795 | commands.update({ |
|
796 | commands.update({ | |
796 | 'listkeys': (listkeys, 'namespace'), |
|
|||
797 | 'lookup': (lookup, 'key'), |
|
797 | 'lookup': (lookup, 'key'), | |
798 | 'pushkey': (pushkey, 'namespace key old new'), |
|
798 | 'pushkey': (pushkey, 'namespace key old new'), | |
799 | 'stream_out': (stream, ''), |
|
799 | 'stream_out': (stream, ''), |
General Comments 0
You need to be logged in to leave comments.
Login now