# HG changeset patch # User Siddharth Agarwal # Date 1367209677 25200 # Node ID 31c863bd21e8661b21d2444da755a97350887f41 # Parent e579687cb5d8cf557a3a86835aa303fed3af109a purge: hook into match.explicitdir and traversedir diff -r e579687cb5d8 -r 31c863bd21e8 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]):