# HG changeset patch # User Pierre-Yves David # Date 2014-03-28 21:42:38 # Node ID 7fac25eddceab415c53081305a48484b089faa94 # Parent 0bb1882c85b03dffe5fc87de5db9585c8d83de3f wireproto: use decorator for the lookup command diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -628,6 +628,7 @@ def listkeys(repo, proto, namespace): for k, v in d]) return t +@wireprotocommand('lookup', 'key') def lookup(repo, proto, key): try: k = encoding.tolocal(key) @@ -794,7 +795,6 @@ def unbundle(repo, proto, heads): os.unlink(tempname) commands.update({ - 'lookup': (lookup, 'key'), 'pushkey': (pushkey, 'namespace key old new'), 'stream_out': (stream, ''), 'unbundle': (unbundle, 'heads'),