comparison mercurial/revset.py @ 18382:f3b21beb9802

filtering: rename filters to their antonyms Now that changelog filtering is in place, it's become evident that naming the filters according to the set of revs _not_ included in the filtered changelog is confusing. This is especially evident in the collaborative branch cache scheme. This changes the names of the filters to reflect the revs that _are_ included: hidden -> visible unserved -> served mutable -> immutable impactable -> base repoview.filteredrevs is renamed to filterrevs, so that callers read a bit more sensibly, e.g.: filterrevs('visible') # filter revs according to what's visible
author Kevin Bullock <kbullock@ringworld.org>
date Sun, 13 Jan 2013 01:39:16 -0600
parents a6483f827512
children 8b0f0dd56cec
comparison
equal deleted inserted replaced
18381:7ac4449f0f39 18382:f3b21beb9802
891 """``hidden()`` 891 """``hidden()``
892 Hidden changesets. 892 Hidden changesets.
893 """ 893 """
894 # i18n: "hidden" is a keyword 894 # i18n: "hidden" is a keyword
895 getargs(x, 0, 0, _("hidden takes no arguments")) 895 getargs(x, 0, 0, _("hidden takes no arguments"))
896 hiddenrevs = repoview.filteredrevs(repo, 'hidden') 896 hiddenrevs = repoview.filterrevs(repo, 'visible')
897 return [r for r in subset if r in hiddenrevs] 897 return [r for r in subset if r in hiddenrevs]
898 898
899 def keyword(repo, subset, x): 899 def keyword(repo, subset, x):
900 """``keyword(string)`` 900 """``keyword(string)``
901 Search commit message, user name, and names of changed files for 901 Search commit message, user name, and names of changed files for