예제 #1
0
def listkeys(repo, proto, namespace):
    d = pushkeymod.list(repo, namespace).items()
    t = "\n".join(["%s\t%s" % (k.encode("string-escape"), v.encode("string-escape")) for k, v in d])
    return t
예제 #2
0
파일: wireproto.py 프로젝트: ezc/mercurial
def listkeys(repo, proto, namespace):
    d = pushkeymod.list(repo, encoding.tolocal(namespace)).items()
    t = '\n'.join(['%s\t%s' % (encoding.fromlocal(k), encoding.fromlocal(v))
                   for k, v in d])
    return t
def listkeys(repo, proto, namespace):
    d = pushkeymod.list(repo, namespace).items()
    t = '\n'.join(['%s\t%s' % (k.encode('string-escape'),
                               v.encode('string-escape')) for k, v in d])
    return t