##// END OF EJS Templates
revset: rename getkwargs() to getargsdict()...
Yuya Nishihara -
r25767:026105c4 default
parent child Browse files
Show More
@@ -282,7 +282,7 b' def getargs(x, min, max, err):'
282 raise error.ParseError(err)
282 raise error.ParseError(err)
283 return l
283 return l
284
284
285 def getkwargs(x, funcname, keys):
285 def getargsdict(x, funcname, keys):
286 return parser.buildargsdict(getlist(x), funcname, keys.split(),
286 return parser.buildargsdict(getlist(x), funcname, keys.split(),
287 keyvaluenode='keyvalue', keynode='symbol')
287 keyvaluenode='keyvalue', keynode='symbol')
288
288
@@ -846,7 +846,7 b' def extra(repo, subset, x):'
846 a regular expression. To match a value that actually starts with `re:`,
846 a regular expression. To match a value that actually starts with `re:`,
847 use the prefix `literal:`.
847 use the prefix `literal:`.
848 """
848 """
849 args = getkwargs(x, 'extra', 'label value')
849 args = getargsdict(x, 'extra', 'label value')
850 if 'label' not in args:
850 if 'label' not in args:
851 # i18n: "extra" is a keyword
851 # i18n: "extra" is a keyword
852 raise error.ParseError(_('extra takes at least 1 argument'))
852 raise error.ParseError(_('extra takes at least 1 argument'))
General Comments 0
You need to be logged in to leave comments. Login now