742 @wireprotocommand('debugwireargs', 'one two *') |
742 @wireprotocommand('debugwireargs', 'one two *') |
743 def debugwireargs(repo, proto, one, two, others): |
743 def debugwireargs(repo, proto, one, two, others): |
744 # only accept optional args from the known set |
744 # only accept optional args from the known set |
745 opts = options('debugwireargs', ['three', 'four'], others) |
745 opts = options('debugwireargs', ['three', 'four'], others) |
746 return repo.debugwireargs(one, two, **opts) |
746 return repo.debugwireargs(one, two, **opts) |
747 |
|
748 # List of options accepted by getbundle. |
|
749 # |
|
750 # Meant to be extended by extensions. It is the extension's responsibility to |
|
751 # ensure such options are properly processed in exchange.getbundle. |
|
752 gboptslist = ['heads', 'common', 'bundlecaps'] |
|
753 |
747 |
754 @wireprotocommand('getbundle', '*') |
748 @wireprotocommand('getbundle', '*') |
755 def getbundle(repo, proto, others): |
749 def getbundle(repo, proto, others): |
756 opts = options('getbundle', gboptsmap.keys(), others) |
750 opts = options('getbundle', gboptsmap.keys(), others) |
757 for k, v in opts.iteritems(): |
751 for k, v in opts.iteritems(): |