contrib/purge/purge.py
changeset 4155 4c714ed245d6
parent 4154 15cd36db4230
child 4310 c8919eb0f315
--- 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)