Mercurial > public > mercurial-scm > hg
comparison mercurial/wireproto.py @ 29735:919a4b7f531d
wireproto: remove gboptslist (API)
This variable has been unused since ce25f465e572, which was over
2 years ago. gboptsmap should be used instead.
Marking as API because this could break extensions.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 06 Aug 2016 15:00:34 -0700 |
parents | 62e2e048d068 |
children | d34cf260d15b |
comparison
equal
deleted
inserted
replaced
29734:62e2e048d068 | 29735:919a4b7f531d |
---|---|
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(): |