##// END OF EJS Templates
wireproto: use decorator for the getbundle command
Pierre-Yves David -
r20915:6aae815f default
parent child Browse files
Show More
@@ -594,6 +594,7 b' def debugwireargs(repo, proto, one, two,'
594 opts = options('debugwireargs', ['three', 'four'], others)
594 opts = options('debugwireargs', ['three', 'four'], others)
595 return repo.debugwireargs(one, two, **opts)
595 return repo.debugwireargs(one, two, **opts)
596
596
597 @wireprotocommand('getbundle', '*')
597 def getbundle(repo, proto, others):
598 def getbundle(repo, proto, others):
598 opts = options('getbundle', ['heads', 'common', 'bundlecaps'], others)
599 opts = options('getbundle', ['heads', 'common', 'bundlecaps'], others)
599 for k, v in opts.iteritems():
600 for k, v in opts.iteritems():
@@ -789,7 +790,6 b' def unbundle(repo, proto, heads):'
789 os.unlink(tempname)
790 os.unlink(tempname)
790
791
791 commands.update({
792 commands.update({
792 'getbundle': (getbundle, '*'),
793 'heads': (heads, ''),
793 'heads': (heads, ''),
794 'hello': (hello, ''),
794 'hello': (hello, ''),
795 'known': (known, 'nodes *'),
795 'known': (known, 'nodes *'),
General Comments 0
You need to be logged in to leave comments. Login now