diff -r a3cabe9415e1 -r f356be1a7ba3 mercurial/match.py --- 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''),