mercurial/revset.py
branchstable
changeset 17258 5822345e9e46
parent 17244 483aa765f6c4
child 17259 e96ad092fb18
equal deleted inserted replaced
17257:d9626b91623a 17258:5822345e9e46
   613     return [r for r in subset if pc.phase(repo, r) == phases.draft]
   613     return [r for r in subset if pc.phase(repo, r) == phases.draft]
   614 
   614 
   615 def extinct(repo, subset, x):
   615 def extinct(repo, subset, x):
   616     """``extinct()``
   616     """``extinct()``
   617     obsolete changeset with obsolete descendant only."""
   617     obsolete changeset with obsolete descendant only."""
   618     getargs(x, 0, 0, _("obsolete takes no arguments"))
   618     getargs(x, 0, 0, _("extinct takes no arguments"))
   619     extinctset = set(repo.revs('(obsolete()::) - (::(not obsolete()))'))
   619     extinctset = set(repo.revs('(obsolete()::) - (::(not obsolete()))'))
   620     return [r for r in subset if r in extinctset]
   620     return [r for r in subset if r in extinctset]
   621 
   621 
   622 def extra(repo, subset, x):
   622 def extra(repo, subset, x):
   623     """``extra(label, [value])``
   623     """``extra(label, [value])``
  1404     return tag(repo, subset, x)
  1404     return tag(repo, subset, x)
  1405 
  1405 
  1406 def unstable(repo, subset, x):
  1406 def unstable(repo, subset, x):
  1407     """``unstable()``
  1407     """``unstable()``
  1408     Unstable changesets are non-obsolete with obsolete descendants."""
  1408     Unstable changesets are non-obsolete with obsolete descendants."""
  1409     getargs(x, 0, 0, _("obsolete takes no arguments"))
  1409     getargs(x, 0, 0, _("unstable takes no arguments"))
  1410     unstableset = set(repo.revs('(obsolete()::) - obsolete()'))
  1410     unstableset = set(repo.revs('(obsolete()::) - obsolete()'))
  1411     return [r for r in subset if r in unstableset]
  1411     return [r for r in subset if r in unstableset]
  1412 
  1412 
  1413 
  1413 
  1414 def user(repo, subset, x):
  1414 def user(repo, subset, x):