hgext/purge.py
changeset 6588 10c23c1d5f33
parent 6582 5acbdd3941c4
child 6592 f3d7c2e81be1
--- a/hgext/purge.py	Mon May 12 11:37:08 2008 -0500
+++ b/hgext/purge.py	Mon May 12 11:37:08 2008 -0500
@@ -86,11 +86,10 @@
     files = []
     missing = []
     match = cmdutil.match(repo, dirs, opts)
+    match.dir = directories.append
     for src, f, st in repo.dirstate.statwalk(match.files(), match,
-                                             ignored=ignored, directories=True):
-        if src == 'd':
-            directories.append(f)
-        elif src == 'm':
+                                             ignored=ignored):
+        if src == 'm':
             missing.append(f)
         elif src == 'f' and f not in repo.dirstate:
             files.append(f)