mercurial/revset.py
branchstable
changeset 17291 2d6bbf87f7b4
parent 17272 632fa86aac55
child 17390 74b44f25b4b1
child 17494 74801685aaa2
equal deleted inserted replaced
17290:7a9246abf9fe 17291:2d6bbf87f7b4
   615     pc = repo._phasecache
   615     pc = repo._phasecache
   616     return [r for r in subset if pc.phase(repo, r) == phases.draft]
   616     return [r for r in subset if pc.phase(repo, r) == phases.draft]
   617 
   617 
   618 def extinct(repo, subset, x):
   618 def extinct(repo, subset, x):
   619     """``extinct()``
   619     """``extinct()``
   620     obsolete changeset with obsolete descendant only."""
   620     Obsolete changesets with obsolete descendants only.
       
   621     """
   621     # i18n: "extinct" is a keyword
   622     # i18n: "extinct" is a keyword
   622     getargs(x, 0, 0, _("extinct takes no arguments"))
   623     getargs(x, 0, 0, _("extinct takes no arguments"))
   623     extinctset = set(repo.revs('(obsolete()::) - (::(not obsolete()))'))
   624     extinctset = set(repo.revs('(obsolete()::) - (::(not obsolete()))'))
   624     return [r for r in subset if r in extinctset]
   625     return [r for r in subset if r in extinctset]
   625 
   626 
  1422 def tagged(repo, subset, x):
  1423 def tagged(repo, subset, x):
  1423     return tag(repo, subset, x)
  1424     return tag(repo, subset, x)
  1424 
  1425 
  1425 def unstable(repo, subset, x):
  1426 def unstable(repo, subset, x):
  1426     """``unstable()``
  1427     """``unstable()``
  1427     Unstable changesets are non-obsolete with obsolete ancestors."""
  1428     Non-obsolete changesets with obsolete ancestors.
       
  1429     """
  1428     # i18n: "unstable" is a keyword
  1430     # i18n: "unstable" is a keyword
  1429     getargs(x, 0, 0, _("unstable takes no arguments"))
  1431     getargs(x, 0, 0, _("unstable takes no arguments"))
  1430     unstableset = set(repo.revs('(obsolete()::) - obsolete()'))
  1432     unstableset = set(repo.revs('(obsolete()::) - obsolete()'))
  1431     return [r for r in subset if r in unstableset]
  1433     return [r for r in subset if r in unstableset]
  1432 
  1434