D4159: match: correct doc for _rootsdirsandparents after 5a7df82de142
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Thu Aug 9 00:08:38 UTC 2018
spectral created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4159
AFFECTED FILES
mercurial/match.py
CHANGE DETAILS
diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -1193,10 +1193,11 @@
def _rootsdirsandparents(kindpats):
'''Returns roots and exact directories from patterns.
- roots are directories to match recursively, whereas exact directories should
- be matched non-recursively. The returned (roots, dirs) tuple will also
- include directories that need to be implicitly considered as either, such as
- parent directories.
+ `roots` are directories to match recursively, `dirs` should
+ be matched non-recursively, and `parents` are the implicitly required
+ directories to walk to items in either roots or dirs.
+
+ Returns a tuple of (roots, dirs, parents).
>>> _rootsdirsandparents(
... [(b'glob', b'g/h/*', b''), (b'glob', b'g/h', b''),
To: spectral, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list