# HG changeset patch # User Kyle Lippincott # Date 1533772397 25200 # Node ID f356be1a7ba3aff49d473eca52eadd59f3d3f778 # Parent a3cabe9415e161f701aeeed978e387747f5abcc8 match: correct doc for _rootsdirsandparents after 5a7df82de142 Differential Revision: https://phab.mercurial-scm.org/D4159 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''),