Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 17390:74b44f25b4b1
revset: add hidden() revset
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sat, 04 Aug 2012 20:20:48 +0200 |
parents | 2d6bbf87f7b4 |
children | e7cfe3587ea4 |
comparison
equal
deleted
inserted
replaced
17388:54feb8d3bab7 | 17390:74b44f25b4b1 |
---|---|
836 """ | 836 """ |
837 s = getset(repo, subset, x) | 837 s = getset(repo, subset, x) |
838 ps = set(parents(repo, subset, x)) | 838 ps = set(parents(repo, subset, x)) |
839 return [r for r in s if r not in ps] | 839 return [r for r in s if r not in ps] |
840 | 840 |
841 def hidden(repo, subset, x): | |
842 """``hidden()`` | |
843 Hidden changesets. | |
844 """ | |
845 # i18n: "hidden" is a keyword | |
846 getargs(x, 0, 0, _("hidden takes no arguments")) | |
847 return [r for r in subset if r in repo.hiddenrevs] | |
848 | |
841 def keyword(repo, subset, x): | 849 def keyword(repo, subset, x): |
842 """``keyword(string)`` | 850 """``keyword(string)`` |
843 Search commit message, user name, and names of changed files for | 851 Search commit message, user name, and names of changed files for |
844 string. The match is case-insensitive. | 852 string. The match is case-insensitive. |
845 """ | 853 """ |
1482 "follow": follow, | 1490 "follow": follow, |
1483 "_followfirst": _followfirst, | 1491 "_followfirst": _followfirst, |
1484 "grep": grep, | 1492 "grep": grep, |
1485 "head": head, | 1493 "head": head, |
1486 "heads": heads, | 1494 "heads": heads, |
1495 "hidden": hidden, | |
1487 "id": node_, | 1496 "id": node_, |
1488 "keyword": keyword, | 1497 "keyword": keyword, |
1489 "last": last, | 1498 "last": last, |
1490 "limit": limit, | 1499 "limit": limit, |
1491 "_matchfiles": _matchfiles, | 1500 "_matchfiles": _matchfiles, |