mercurial/util.py
changeset 4233 03a665f9f913
parent 4199 ec932167c3a7
child 4236 34c4540c04c5
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)