changeset 20907:aedec880e095

wireproto: use decorator for the batch command
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 28 Mar 2014 14:35:36 -0700
parents 7a634b34fc91
children ae4bf69c8068
files mercurial/wireproto.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireproto.py	Fri Mar 28 14:30:11 2014 -0700
+++ b/mercurial/wireproto.py	Fri Mar 28 14:35:36 2014 -0700
@@ -481,6 +481,7 @@
         return func
     return register
 
+@wireprotocommand('batch', 'cmds *')
 def batch(repo, proto, cmds, others):
     repo = repo.filtered("served")
     res = []
@@ -781,7 +782,6 @@
         os.unlink(tempname)
 
 commands.update({
-    'batch': (batch, 'cmds *'),
     'between': (between, 'pairs'),
     'branchmap': (branchmap, ''),
     'branches': (branches, 'nodes'),