wireproto: use decorator for the between command
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 28 Mar 2014 14:36:05 -0700
changeset 20908 ae4bf69c8068
parent 20907 aedec880e095
child 20909 c8b9cbf55840
wireproto: use decorator for the between command
mercurial/wireproto.py
--- a/mercurial/wireproto.py	Fri Mar 28 14:35:36 2014 -0700
+++ b/mercurial/wireproto.py	Fri Mar 28 14:36:05 2014 -0700
@@ -513,6 +513,7 @@
         res.append(escapearg(result))
     return ';'.join(res)
 
+@wireprotocommand('between', 'pairs')
 def between(repo, proto, pairs):
     pairs = [decodelist(p, '-') for p in pairs.split(" ")]
     r = []
@@ -782,7 +783,6 @@
         os.unlink(tempname)
 
 commands.update({
-    'between': (between, 'pairs'),
     'branchmap': (branchmap, ''),
     'branches': (branches, 'nodes'),
     'capabilities': (capabilities, ''),