# HG changeset patch # User Pierre-Yves David # Date 2014-03-28 21:40:07 # Node ID 6aae815f3e0dccd12c672db5db7e927da16e3700 # Parent d81b518a18624e0da3e94b681b64f806177b0a47 wireproto: use decorator for the getbundle command diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -594,6 +594,7 @@ def debugwireargs(repo, proto, one, two, opts = options('debugwireargs', ['three', 'four'], others) return repo.debugwireargs(one, two, **opts) +@wireprotocommand('getbundle', '*') def getbundle(repo, proto, others): opts = options('getbundle', ['heads', 'common', 'bundlecaps'], others) for k, v in opts.iteritems(): @@ -789,7 +790,6 @@ def unbundle(repo, proto, heads): os.unlink(tempname) commands.update({ - 'getbundle': (getbundle, '*'), 'heads': (heads, ''), 'hello': (hello, ''), 'known': (known, 'nodes *'),