Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG6eee2bcc57c4: py3: handle keyword arguments correctly in revset.py
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
error, | error, | ||||
hbisect, | hbisect, | ||||
match as matchmod, | match as matchmod, | ||||
node, | node, | ||||
obsolete as obsmod, | obsolete as obsmod, | ||||
obsutil, | obsutil, | ||||
pathutil, | pathutil, | ||||
phases, | phases, | ||||
pycompat, | |||||
registrar, | registrar, | ||||
repoview, | repoview, | ||||
revsetlang, | revsetlang, | ||||
scmutil, | scmutil, | ||||
smartset, | smartset, | ||||
util, | util, | ||||
) | ) | ||||
safesymbols = set() | safesymbols = set() | ||||
predicate = registrar.revsetpredicate() | predicate = registrar.revsetpredicate() | ||||
@predicate('_destupdate') | @predicate('_destupdate') | ||||
def _destupdate(repo, subset, x): | def _destupdate(repo, subset, x): | ||||
# experimental revset for update destination | # experimental revset for update destination | ||||
args = getargsdict(x, 'limit', 'clean') | args = getargsdict(x, 'limit', 'clean') | ||||
return subset & baseset([destutil.destupdate(repo, **args)[0]]) | return subset & baseset([destutil.destupdate(repo, | ||||
**pycompat.strkwargs(args))[0]]) | |||||
@predicate('_destmerge') | @predicate('_destmerge') | ||||
def _destmerge(repo, subset, x): | def _destmerge(repo, subset, x): | ||||
# experimental revset for merge destination | # experimental revset for merge destination | ||||
sourceset = None | sourceset = None | ||||
if x is not None: | if x is not None: | ||||
sourceset = getset(repo, fullreposet(repo), x) | sourceset = getset(repo, fullreposet(repo), x) | ||||
return subset & baseset([destutil.destmerge(repo, sourceset=sourceset)]) | return subset & baseset([destutil.destmerge(repo, sourceset=sourceset)]) |