# HG changeset patch # User Pierre-Yves David # Date 1396042844 25200 # Node ID 5ad151f8a3fac40510fac2c4906d20046afc9295 # Parent 31eacf182f80daba870d50684727167f20e998ec wireproto: use decorator for the hello command diff -r 31eacf182f80 -r 5ad151f8a3fa mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Mar 28 14:40:31 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:40:44 2014 -0700 @@ -610,6 +610,7 @@ h = repo.heads() return encodelist(h) + "\n" +@wireprotocommand('hello') def hello(repo, proto): '''the hello command returns a set of lines describing various interesting things about the server, in an RFC822-like format. @@ -791,7 +792,6 @@ os.unlink(tempname) commands.update({ - 'hello': (hello, ''), 'known': (known, 'nodes *'), 'listkeys': (listkeys, 'namespace'), 'lookup': (lookup, 'key'),