Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.py @ 30753:c3a3896a9fa8
parser: extend buildargsdict() to support variable-length positional args
This can simplify the argument parsing of followlines(). Tests are added by
the next patch.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 09 Jan 2017 15:25:52 +0900 |
parents | 42c75b4fa46a |
children | 26209cb7184e |
line wrap: on
line diff
--- a/mercurial/revset.py Mon Jan 09 15:15:21 2017 +0900 +++ b/mercurial/revset.py Mon Jan 09 15:25:52 2017 +0900 @@ -326,7 +326,7 @@ return l def getargsdict(x, funcname, keys): - return parser.buildargsdict(getlist(x), funcname, keys.split(), + return parser.buildargsdict(getlist(x), funcname, parser.splitargspec(keys), keyvaluenode='keyvalue', keynode='symbol') def getset(repo, subset, x):