comparison hgext/purge.py @ 6582:5acbdd3941c4

walk: remove remaining users of cmdutils.matchpats
author Matt Mackall <mpm@selenic.com>
date Mon, 12 May 2008 11:37:07 -0500
parents 76af1dff402a
children 10c23c1d5f33
comparison
equal deleted inserted replaced
6581:1ae7cb678d24 6582:5acbdd3941c4
83 _check_fs(ui, repo) 83 _check_fs(ui, repo)
84 84
85 directories = [] 85 directories = []
86 files = [] 86 files = []
87 missing = [] 87 missing = []
88 roots, match, anypats = cmdutil.matchpats(repo, dirs, opts) 88 match = cmdutil.match(repo, dirs, opts)
89 for src, f, st in repo.dirstate.statwalk(roots, match, 89 for src, f, st in repo.dirstate.statwalk(match.files(), match,
90 ignored=ignored, directories=True): 90 ignored=ignored, directories=True):
91 if src == 'd': 91 if src == 'd':
92 directories.append(f) 92 directories.append(f)
93 elif src == 'm': 93 elif src == 'm':
94 missing.append(f) 94 missing.append(f)