##// END OF EJS Templates
wireproto: refuse to lookup secret csets
Matt Mackall -
r15925:f9fc4669 default
parent child Browse files
Show More
@@ -471,7 +471,11 b' def listkeys(repo, proto, namespace):'
471
471
472 def lookup(repo, proto, key):
472 def lookup(repo, proto, key):
473 try:
473 try:
474 r = hex(repo.lookup(encoding.tolocal(key)))
474 k = encoding.tolocal(key)
475 c = repo[k]
476 if c.phase() == phases.secret:
477 raise error.RepoLookupError(_("unknown revision '%s'") % k)
478 r = c.hex()
475 success = 1
479 success = 1
476 except Exception, inst:
480 except Exception, inst:
477 r = str(inst)
481 r = str(inst)
General Comments 0
You need to be logged in to leave comments. Login now