Submitter | Yuya Nishihara |
---|---|
Date | July 9, 2015, 2:43 p.m. |
Message ID | <befe8a7138c8bf6c6383.1436453014@mimosa> |
Download | mbox | patch |
Permalink | /patch/9937/ |
State | Accepted |
Headers | show |
Comments
On Thu, 2015-07-09 at 23:43 +0900, Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara <yuya@tcha.org> > # Date 1435840771 -32400 > # Thu Jul 02 21:39:31 2015 +0900 > # Node ID befe8a7138c8bf6c6383a31065339804390ff136 > # Parent 648323f41a89619d9eeeb7287213378c340866c8 > revset: rename getkwargs() to getargsdict() Sure, queued for default.
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -282,7 +282,7 @@ def getargs(x, min, max, err): raise error.ParseError(err) return l -def getkwargs(x, funcname, keys): +def getargsdict(x, funcname, keys): return parser.buildargsdict(getlist(x), funcname, keys.split(), keyvaluenode='keyvalue', keynode='symbol') @@ -840,7 +840,7 @@ def extra(repo, subset, x): a regular expression. To match a value that actually starts with `re:`, use the prefix `literal:`. """ - args = getkwargs(x, 'extra', 'label value') + args = getargsdict(x, 'extra', 'label value') if 'label' not in args: # i18n: "extra" is a keyword raise error.ParseError(_('extra takes at least 1 argument'))