# HG changeset patch # User Pierre-Yves David # Date 2014-03-28 21:40:44 # Node ID 5ad151f8a3fac40510fac2c4906d20046afc9295 # Parent 31eacf182f80daba870d50684727167f20e998ec wireproto: use decorator for the hello command diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -610,6 +610,7 @@ def heads(repo, proto): 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 @@ def unbundle(repo, proto, heads): os.unlink(tempname) commands.update({ - 'hello': (hello, ''), 'known': (known, 'nodes *'), 'listkeys': (listkeys, 'namespace'), 'lookup': (lookup, 'key'),