purge: hook into match.explicitdir and traversedir
authorSiddharth Agarwal <sid0@fb.com>
Sun, 28 Apr 2013 21:27:57 -0700
changeset 19139 31c863bd21e8
parent 19138 e579687cb5d8
child 19140 10103caea69d
purge: hook into match.explicitdir and traversedir
hgext/purge.py
--- a/hgext/purge.py	Sun Apr 28 21:27:21 2013 -0700
+++ b/hgext/purge.py	Sun Apr 28 21:27:57 2013 -0700
@@ -97,7 +97,7 @@
 
     directories = []
     match = scmutil.match(repo[None], dirs, opts)
-    match.dir = directories.append
+    match.explicitdir = match.traversedir = directories.append
     status = repo.status(match=match, ignored=opts['all'], unknown=True)
 
     for f in sorted(status[4] + status[5]):