Mercurial > hgsubversion
changeset 1520:fc91ba4ffa52
revset: accept additional arguments
The upstream is going to add an `order` argument to `revset.methods`
functions. Let's update our code to be compatible with it.
[1]: https://phab.mercurial-scm.org/D451
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 28 Aug 2017 10:15:18 -0700 |
parents | aec176db232c |
children | f73cc01a8167 |
files | hgsubversion/util.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -387,10 +387,10 @@ revsets = { 'svnrev': revset_svnrev, } -def revset_stringset(orig, repo, subset, x): +def revset_stringset(orig, repo, subset, x, *args, **kwargs): if x.startswith('r') and x[1:].isdigit(): return revset_svnrev(repo, subset, ('string', x[1:])) - return orig(repo, subset, x) + return orig(repo, subset, x, *args, **kwargs) def getfilestoresize(ui): """Return the replay or stupid file memory store size in megabytes or -1"""