Mercurial > hg
comparison mercurial/match.py @ 38957:f356be1a7ba3
match: correct doc for _rootsdirsandparents after 5a7df82de142
Differential Revision: https://phab.mercurial-scm.org/D4159
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Wed, 08 Aug 2018 16:53:17 -0700 |
parents | 081cc9a95b65 |
children | b9f94d67ea73 |
comparison
equal
deleted
inserted
replaced
38956:a3cabe9415e1 | 38957:f356be1a7ba3 |
---|---|
1191 return roots | 1191 return roots |
1192 | 1192 |
1193 def _rootsdirsandparents(kindpats): | 1193 def _rootsdirsandparents(kindpats): |
1194 '''Returns roots and exact directories from patterns. | 1194 '''Returns roots and exact directories from patterns. |
1195 | 1195 |
1196 roots are directories to match recursively, whereas exact directories should | 1196 `roots` are directories to match recursively, `dirs` should |
1197 be matched non-recursively. The returned (roots, dirs) tuple will also | 1197 be matched non-recursively, and `parents` are the implicitly required |
1198 include directories that need to be implicitly considered as either, such as | 1198 directories to walk to items in either roots or dirs. |
1199 parent directories. | 1199 |
1200 Returns a tuple of (roots, dirs, parents). | |
1200 | 1201 |
1201 >>> _rootsdirsandparents( | 1202 >>> _rootsdirsandparents( |
1202 ... [(b'glob', b'g/h/*', b''), (b'glob', b'g/h', b''), | 1203 ... [(b'glob', b'g/h/*', b''), (b'glob', b'g/h', b''), |
1203 ... (b'glob', b'g*', b'')]) | 1204 ... (b'glob', b'g*', b'')]) |
1204 (['g/h', 'g/h', '.'], [], ['g', '.']) | 1205 (['g/h', 'g/h', '.'], [], ['g', '.']) |