Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG457d1ebf151b: revset: mark evolution-related revsets as experimental
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| durin42 |
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| return phasedivergent(repo, subset, x) | return phasedivergent(repo, subset, x) | ||||
| @predicate('phasedivergent()', safe=True) | @predicate('phasedivergent()', safe=True) | ||||
| def phasedivergent(repo, subset, x): | def phasedivergent(repo, subset, x): | ||||
| """Mutable changesets marked as successors of public changesets. | """Mutable changesets marked as successors of public changesets. | ||||
| Only non-public and non-obsolete changesets can be `phasedivergent`. | Only non-public and non-obsolete changesets can be `phasedivergent`. | ||||
| (EXPERIMENTAL) | |||||
| """ | """ | ||||
| # i18n: "phasedivergent" is a keyword | # i18n: "phasedivergent" is a keyword | ||||
| getargs(x, 0, 0, _("phasedivergent takes no arguments")) | getargs(x, 0, 0, _("phasedivergent takes no arguments")) | ||||
| phasedivergent = obsmod.getrevs(repo, 'phasedivergent') | phasedivergent = obsmod.getrevs(repo, 'phasedivergent') | ||||
| return subset & phasedivergent | return subset & phasedivergent | ||||
| @predicate('bundle()', safe=True) | @predicate('bundle()', safe=True) | ||||
| def bundle(repo, subset, x): | def bundle(repo, subset, x): | ||||
| "use 'contentdivergent()'") | "use 'contentdivergent()'") | ||||
| repo.ui.deprecwarn(msg, '4.4') | repo.ui.deprecwarn(msg, '4.4') | ||||
| return contentdivergent(repo, subset, x) | return contentdivergent(repo, subset, x) | ||||
| @predicate('contentdivergent()', safe=True) | @predicate('contentdivergent()', safe=True) | ||||
| def contentdivergent(repo, subset, x): | def contentdivergent(repo, subset, x): | ||||
| """ | """ | ||||
| Final successors of changesets with an alternative set of final successors. | Final successors of changesets with an alternative set of final | ||||
| successors. (EXPERIMENTAL) | |||||
| """ | """ | ||||
| # i18n: "contentdivergent" is a keyword | # i18n: "contentdivergent" is a keyword | ||||
| getargs(x, 0, 0, _("contentdivergent takes no arguments")) | getargs(x, 0, 0, _("contentdivergent takes no arguments")) | ||||
| contentdivergent = obsmod.getrevs(repo, 'contentdivergent') | contentdivergent = obsmod.getrevs(repo, 'contentdivergent') | ||||
| return subset & contentdivergent | return subset & contentdivergent | ||||
| @predicate('extinct()', safe=True) | @predicate('extinct()', safe=True) | ||||
| def extinct(repo, subset, x): | def extinct(repo, subset, x): | ||||
| msg = ("'unstable()' is deprecated, " | msg = ("'unstable()' is deprecated, " | ||||
| "use 'orphan()'") | "use 'orphan()'") | ||||
| repo.ui.deprecwarn(msg, '4.4') | repo.ui.deprecwarn(msg, '4.4') | ||||
| return orphan(repo, subset, x) | return orphan(repo, subset, x) | ||||
| @predicate('orphan()', safe=True) | @predicate('orphan()', safe=True) | ||||
| def orphan(repo, subset, x): | def orphan(repo, subset, x): | ||||
| """Non-obsolete changesets with obsolete ancestors. | """Non-obsolete changesets with obsolete ancestors. (EXPERIMENTAL) | ||||
| """ | """ | ||||
| # i18n: "orphan" is a keyword | # i18n: "orphan" is a keyword | ||||
| getargs(x, 0, 0, _("orphan takes no arguments")) | getargs(x, 0, 0, _("orphan takes no arguments")) | ||||
| orphan = obsmod.getrevs(repo, 'orphan') | orphan = obsmod.getrevs(repo, 'orphan') | ||||
| return subset & orphan | return subset & orphan | ||||
| @predicate('user(string)', safe=True) | @predicate('user(string)', safe=True) | ||||