equal
deleted
inserted
replaced
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 = [] |