Mercurial > hg
diff contrib/purge/purge.py @ 4155:4c714ed245d6
purge.py: fix invocation of statwalk
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 06 Mar 2007 17:45:50 -0300 |
parents | 15cd36db4230 |
children | c8919eb0f315 |
line wrap: on
line diff
--- a/contrib/purge/purge.py Tue Feb 27 09:05:36 2007 +0100 +++ b/contrib/purge/purge.py Tue Mar 06 17:45:50 2007 -0300 @@ -49,9 +49,10 @@ directories = [] files = [] - for src, f, st in repo.dirstate.statwalk(files=dirs, ignored=True, - directories=True): - if src == 'd': + roots, match, anypats = util.cmdmatcher(repo.root, repo.getcwd(), dirs) + for src, f, st in repo.dirstate.statwalk(files=roots, match=match, + ignored=True, directories=True): + if src == 'd': directories.append(f) elif src == 'f' and f not in repo.dirstate: files.append(f)