mercurial/revset.py
changeset 44711 637eb7f7559b
parent 44710 eca82eb9d777
child 44856 b7808443ed6a
equal deleted inserted replaced
44710:eca82eb9d777 44711:637eb7f7559b
  2529     getargs(x, 0, 0, b'unstable takes no arguments')
  2529     getargs(x, 0, 0, b'unstable takes no arguments')
  2530     _unstable = set()
  2530     _unstable = set()
  2531     _unstable.update(obsmod.getrevs(repo, b'orphan'))
  2531     _unstable.update(obsmod.getrevs(repo, b'orphan'))
  2532     _unstable.update(obsmod.getrevs(repo, b'phasedivergent'))
  2532     _unstable.update(obsmod.getrevs(repo, b'phasedivergent'))
  2533     _unstable.update(obsmod.getrevs(repo, b'contentdivergent'))
  2533     _unstable.update(obsmod.getrevs(repo, b'contentdivergent'))
  2534     _unstable = baseset(_unstable)
  2534     return subset & baseset(_unstable)
  2535     _unstable.sort()  # set is non-ordered, enforce order
       
  2536     return subset & _unstable
       
  2537 
  2535 
  2538 
  2536 
  2539 @predicate(b'user(string)', safe=True, weight=10)
  2537 @predicate(b'user(string)', safe=True, weight=10)
  2540 def user(repo, subset, x):
  2538 def user(repo, subset, x):
  2541     """User name contains string. The match is case-insensitive.
  2539     """User name contains string. The match is case-insensitive.