# HG changeset patch # User Pierre-Yves David # Date 1396042807 25200 # Node ID 6aae815f3e0dccd12c672db5db7e927da16e3700 # Parent d81b518a18624e0da3e94b681b64f806177b0a47 wireproto: use decorator for the getbundle command diff -r d81b518a1862 -r 6aae815f3e0d mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Mar 28 14:39:06 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:40:07 2014 -0700 @@ -594,6 +594,7 @@ 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 @@ os.unlink(tempname) commands.update({ - 'getbundle': (getbundle, '*'), 'heads': (heads, ''), 'hello': (hello, ''), 'known': (known, 'nodes *'),