Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 14353:afb2ed5b37a2 stable
revset: expand help for contains predicate
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 18 May 2011 09:15:18 +0200 |
parents | 117990768fe0 |
children | c66ba016ebb8 |
comparison
equal
deleted
inserted
replaced
14328:3c65cdcf3ba6 | 14353:afb2ed5b37a2 |
---|---|
426 continue | 426 continue |
427 return s | 427 return s |
428 | 428 |
429 def contains(repo, subset, x): | 429 def contains(repo, subset, x): |
430 """``contains(pattern)`` | 430 """``contains(pattern)`` |
431 Revision contains pattern. | 431 Revision contains a file matching pattern. See :hg:`help patterns` |
432 for information about file patterns. | |
432 """ | 433 """ |
433 # i18n: "contains" is a keyword | 434 # i18n: "contains" is a keyword |
434 pat = getstring(x, _("contains requires a pattern")) | 435 pat = getstring(x, _("contains requires a pattern")) |
435 m = matchmod.match(repo.root, repo.getcwd(), [pat]) | 436 m = matchmod.match(repo.root, repo.getcwd(), [pat]) |
436 s = [] | 437 s = [] |