comparison 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
comparison
equal deleted inserted replaced
4154:15cd36db4230 4155:4c714ed245d6
47 else: 47 else:
48 ui.write('%s%s' % (name, eol)) 48 ui.write('%s%s' % (name, eol))
49 49
50 directories = [] 50 directories = []
51 files = [] 51 files = []
52 for src, f, st in repo.dirstate.statwalk(files=dirs, ignored=True, 52 roots, match, anypats = util.cmdmatcher(repo.root, repo.getcwd(), dirs)
53 directories=True): 53 for src, f, st in repo.dirstate.statwalk(files=roots, match=match,
54 if src == 'd': 54 ignored=True, directories=True):
55 if src == 'd':
55 directories.append(f) 56 directories.append(f)
56 elif src == 'f' and f not in repo.dirstate: 57 elif src == 'f' and f not in repo.dirstate:
57 files.append(f) 58 files.append(f)
58 59
59 directories.sort() 60 directories.sort()