##// END OF EJS Templates
wireproto: use repo.lookup() for lookup command...
Martin von Zweigbergk -
r37371:ac666c5c default
parent child Browse files
Show More
@@ -1014,8 +1014,8 b' def listkeys(repo, proto, namespace):'
1014 def lookup(repo, proto, key):
1014 def lookup(repo, proto, key):
1015 try:
1015 try:
1016 k = encoding.tolocal(key)
1016 k = encoding.tolocal(key)
1017 c = repo[k]
1017 n = repo.lookup(k)
1018 r = c.hex()
1018 r = hex(n)
1019 success = 1
1019 success = 1
1020 except Exception as inst:
1020 except Exception as inst:
1021 r = stringutil.forcebytestr(inst)
1021 r = stringutil.forcebytestr(inst)
General Comments 0
You need to be logged in to leave comments. Login now