Show More
@@ -8,7 +8,7 b'' | |||||
8 | import urllib, tempfile, os, sys |
|
8 | import urllib, tempfile, os, sys | |
9 | from i18n import _ |
|
9 | from i18n import _ | |
10 | from node import bin, hex |
|
10 | from node import bin, hex | |
11 | import changegroup as changegroupmod, bundle2 |
|
11 | import changegroup as changegroupmod, bundle2, pushkey as pushkeymod | |
12 | import peer, error, encoding, util, store, exchange |
|
12 | import peer, error, encoding, util, store, exchange | |
13 |
|
13 | |||
14 |
|
14 | |||
@@ -680,9 +680,7 b' def hello(repo, proto):' | |||||
680 | @wireprotocommand('listkeys', 'namespace') |
|
680 | @wireprotocommand('listkeys', 'namespace') | |
681 | def listkeys(repo, proto, namespace): |
|
681 | def listkeys(repo, proto, namespace): | |
682 | d = repo.listkeys(encoding.tolocal(namespace)).items() |
|
682 | d = repo.listkeys(encoding.tolocal(namespace)).items() | |
683 | t = '\n'.join(['%s\t%s' % (encoding.fromlocal(k), encoding.fromlocal(v)) |
|
683 | return pushkeymod.encodekeys(d) | |
684 | for k, v in d]) |
|
|||
685 | return t |
|
|||
686 |
|
684 | |||
687 | @wireprotocommand('lookup', 'key') |
|
685 | @wireprotocommand('lookup', 'key') | |
688 | def lookup(repo, proto, key): |
|
686 | def lookup(repo, proto, key): |
General Comments 0
You need to be logged in to leave comments.
Login now