##// END OF EJS Templates
wireproto: use decorator for the batch command
Pierre-Yves David -
r20907:aedec880 default
parent child Browse files
Show More
@@ -481,6 +481,7 b" def wireprotocommand(name, args=''):"
481 return func
481 return func
482 return register
482 return register
483
483
484 @wireprotocommand('batch', 'cmds *')
484 def batch(repo, proto, cmds, others):
485 def batch(repo, proto, cmds, others):
485 repo = repo.filtered("served")
486 repo = repo.filtered("served")
486 res = []
487 res = []
@@ -781,7 +782,6 b' def unbundle(repo, proto, heads):'
781 os.unlink(tempname)
782 os.unlink(tempname)
782
783
783 commands.update({
784 commands.update({
784 'batch': (batch, 'cmds *'),
785 'between': (between, 'pairs'),
785 'between': (between, 'pairs'),
786 'branchmap': (branchmap, ''),
786 'branchmap': (branchmap, ''),
787 'branches': (branches, 'nodes'),
787 'branches': (branches, 'nodes'),
General Comments 0
You need to be logged in to leave comments. Login now