Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 17272:632fa86aac55 stable
revset: fix the definition of "unstable changesets" for "unstable" predicate
unstable-ness of changesets should be determined by obsolete-ness of
not descendants but ancestors.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 28 Jul 2012 23:51:57 +0900 |
parents | c30307eeec4b |
children | 2d6bbf87f7b4 |
comparison
equal
deleted
inserted
replaced
17271:a09cc6aeed4a | 17272:632fa86aac55 |
---|---|
1422 def tagged(repo, subset, x): | 1422 def tagged(repo, subset, x): |
1423 return tag(repo, subset, x) | 1423 return tag(repo, subset, x) |
1424 | 1424 |
1425 def unstable(repo, subset, x): | 1425 def unstable(repo, subset, x): |
1426 """``unstable()`` | 1426 """``unstable()`` |
1427 Unstable changesets are non-obsolete with obsolete descendants.""" | 1427 Unstable changesets are non-obsolete with obsolete ancestors.""" |
1428 # i18n: "unstable" is a keyword | 1428 # i18n: "unstable" is a keyword |
1429 getargs(x, 0, 0, _("unstable takes no arguments")) | 1429 getargs(x, 0, 0, _("unstable takes no arguments")) |
1430 unstableset = set(repo.revs('(obsolete()::) - obsolete()')) | 1430 unstableset = set(repo.revs('(obsolete()::) - obsolete()')) |
1431 return [r for r in subset if r in unstableset] | 1431 return [r for r in subset if r in unstableset] |
1432 | 1432 |