Show More
@@ -270,6 +270,10 b' def func(repo, subset, a, b):' | |||||
270 | def adds(repo, subset, x): |
|
270 | def adds(repo, subset, x): | |
271 | """``adds(pattern)`` |
|
271 | """``adds(pattern)`` | |
272 | Changesets that add a file matching pattern. |
|
272 | Changesets that add a file matching pattern. | |
|
273 | ||||
|
274 | The pattern without explicit kind like ``glob:`` is expected to be | |||
|
275 | relative to the current directory and match against a file or a | |||
|
276 | directory. | |||
273 | """ |
|
277 | """ | |
274 | # i18n: "adds" is a keyword |
|
278 | # i18n: "adds" is a keyword | |
275 | pat = getstring(x, _("adds requires a pattern")) |
|
279 | pat = getstring(x, _("adds requires a pattern")) | |
@@ -526,6 +530,10 b' def contains(repo, subset, x):' | |||||
526 | """``contains(pattern)`` |
|
530 | """``contains(pattern)`` | |
527 | Revision contains a file matching pattern. See :hg:`help patterns` |
|
531 | Revision contains a file matching pattern. See :hg:`help patterns` | |
528 | for information about file patterns. |
|
532 | for information about file patterns. | |
|
533 | ||||
|
534 | The pattern without explicit kind like ``glob:`` is expected to be | |||
|
535 | relative to the current directory and match against a file exactly | |||
|
536 | for efficiency. | |||
529 | """ |
|
537 | """ | |
530 | # i18n: "contains" is a keyword |
|
538 | # i18n: "contains" is a keyword | |
531 | pat = getstring(x, _("contains requires a pattern")) |
|
539 | pat = getstring(x, _("contains requires a pattern")) | |
@@ -713,6 +721,10 b' def filelog(repo, subset, x):' | |||||
713 | For performance reasons, ``filelog()`` does not show every changeset |
|
721 | For performance reasons, ``filelog()`` does not show every changeset | |
714 | that affects the requested file(s). See :hg:`help log` for details. For |
|
722 | that affects the requested file(s). See :hg:`help log` for details. For | |
715 | a slower, more accurate result, use ``file()``. |
|
723 | a slower, more accurate result, use ``file()``. | |
|
724 | ||||
|
725 | The pattern without explicit kind like ``glob:`` is expected to be | |||
|
726 | relative to the current directory and match against a file exactly | |||
|
727 | for efficiency. | |||
716 | """ |
|
728 | """ | |
717 |
|
729 | |||
718 | # i18n: "filelog" is a keyword |
|
730 | # i18n: "filelog" is a keyword | |
@@ -868,6 +880,8 b' def hasfile(repo, subset, x):' | |||||
868 |
|
880 | |||
869 | For a faster but less accurate result, consider using ``filelog()`` |
|
881 | For a faster but less accurate result, consider using ``filelog()`` | |
870 | instead. |
|
882 | instead. | |
|
883 | ||||
|
884 | This predicate uses ``glob:`` as the default kind of pattern. | |||
871 | """ |
|
885 | """ | |
872 | # i18n: "file" is a keyword |
|
886 | # i18n: "file" is a keyword | |
873 | pat = getstring(x, _("file requires a pattern")) |
|
887 | pat = getstring(x, _("file requires a pattern")) | |
@@ -1003,6 +1017,10 b' def minrev(repo, subset, x):' | |||||
1003 | def modifies(repo, subset, x): |
|
1017 | def modifies(repo, subset, x): | |
1004 | """``modifies(pattern)`` |
|
1018 | """``modifies(pattern)`` | |
1005 | Changesets modifying files matched by pattern. |
|
1019 | Changesets modifying files matched by pattern. | |
|
1020 | ||||
|
1021 | The pattern without explicit kind like ``glob:`` is expected to be | |||
|
1022 | relative to the current directory and match against a file or a | |||
|
1023 | directory. | |||
1006 | """ |
|
1024 | """ | |
1007 | # i18n: "modifies" is a keyword |
|
1025 | # i18n: "modifies" is a keyword | |
1008 | pat = getstring(x, _("modifies requires a pattern")) |
|
1026 | pat = getstring(x, _("modifies requires a pattern")) | |
@@ -1216,6 +1234,10 b' def remote(repo, subset, x):' | |||||
1216 | def removes(repo, subset, x): |
|
1234 | def removes(repo, subset, x): | |
1217 | """``removes(pattern)`` |
|
1235 | """``removes(pattern)`` | |
1218 | Changesets which remove files matching pattern. |
|
1236 | Changesets which remove files matching pattern. | |
|
1237 | ||||
|
1238 | The pattern without explicit kind like ``glob:`` is expected to be | |||
|
1239 | relative to the current directory and match against a file or a | |||
|
1240 | directory. | |||
1219 | """ |
|
1241 | """ | |
1220 | # i18n: "removes" is a keyword |
|
1242 | # i18n: "removes" is a keyword | |
1221 | pat = getstring(x, _("removes requires a pattern")) |
|
1243 | pat = getstring(x, _("removes requires a pattern")) |
General Comments 0
You need to be logged in to leave comments.
Login now