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