Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 4233:03a665f9f913
util._matcher: use "." as the root of empty {rel,}path patterns
Should fix issue332. Really.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 16 Mar 2007 22:48:20 -0300 |
parents | ec932167c3a7 |
children | 34c4540c04c5 |
comparison
equal
deleted
inserted
replaced
4199:ec932167c3a7 | 4233:03a665f9f913 |
---|---|
490 if kind == 'glob': | 490 if kind == 'glob': |
491 root = globprefix(name) | 491 root = globprefix(name) |
492 roots.append(root) | 492 roots.append(root) |
493 elif kind in ('relpath', 'path'): | 493 elif kind in ('relpath', 'path'): |
494 files.append((kind, name)) | 494 files.append((kind, name)) |
495 roots.append(name) | 495 roots.append(name or '.') |
496 elif kind == 'relglob': | 496 elif kind == 'relglob': |
497 roots.append('.') | 497 roots.append('.') |
498 return roots, pats + files, anypats | 498 return roots, pats + files, anypats |
499 | 499 |
500 roots, pats, anypats = normalizepats(names, dflt_pat) | 500 roots, pats, anypats = normalizepats(names, dflt_pat) |