Patchwork D4159: match: correct doc for _rootsdirsandparents after 5a7df82de142

login
register
mail settings
Submitter phabricator
Date Aug. 9, 2018, 12:22 a.m.
Message ID <57f3d51eba8a119a7f6799bd66086429@localhost.localdomain>
Download mbox | patch
Permalink /patch/33433/
State Not Applicable
Headers show

Comments

phabricator - Aug. 9, 2018, 12:22 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf356be1a7ba3: match: correct doc for _rootsdirsandparents after 5a7df82de142 (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4159?vs=10079&id=10085

REVISION DETAIL
  https://phab.mercurial-scm.org/D4159

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




To: spectral, #hg-reviewers, martinvonz
Cc: mercurial-devel

Patch

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''),