457 return subset.filter(lambda r: c(r) or getbranch(r) in b, |
457 return subset.filter(lambda r: c(r) or getbranch(r) in b, |
458 condrepr=lambda: '<branch %r>' % sorted(b)) |
458 condrepr=lambda: '<branch %r>' % sorted(b)) |
459 |
459 |
460 @predicate('bumped()', safe=True) |
460 @predicate('bumped()', safe=True) |
461 def bumped(repo, subset, x): |
461 def bumped(repo, subset, x): |
|
462 msg = ("'bumped()' is deprecated, " |
|
463 "use 'phasedivergent()'") |
|
464 repo.ui.deprecwarn(msg, '4.4') |
|
465 |
|
466 return phasedivergent(repo, subset, x) |
|
467 |
|
468 @predicate('phasedivergent()', safe=True) |
|
469 def phasedivergent(repo, subset, x): |
462 """Mutable changesets marked as successors of public changesets. |
470 """Mutable changesets marked as successors of public changesets. |
463 |
471 |
464 Only non-public and non-obsolete changesets can be `bumped`. |
472 Only non-public and non-obsolete changesets can be `phasedivergent`. |
465 """ |
473 """ |
466 # i18n: "bumped" is a keyword |
474 # i18n: "phasedivergent" is a keyword |
467 getargs(x, 0, 0, _("bumped takes no arguments")) |
475 getargs(x, 0, 0, _("phasedivergent takes no arguments")) |
468 bumped = obsmod.getrevs(repo, 'bumped') |
476 bumped = obsmod.getrevs(repo, 'bumped') |
469 return subset & bumped |
477 return subset & bumped |
470 |
478 |
471 @predicate('bundle()', safe=True) |
479 @predicate('bundle()', safe=True) |
472 def bundle(repo, subset, x): |
480 def bundle(repo, subset, x): |