mercurial/match.py
changeset 38957 f356be1a7ba3
parent 38955 081cc9a95b65
child 38958 b9f94d67ea73
--- a/mercurial/match.py	Tue Jul 31 16:47:43 2018 -0700
+++ b/mercurial/match.py	Wed Aug 08 16:53:17 2018 -0700
@@ -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''),