# HG changeset patch # User Siddharth Agarwal # Date 2013-04-29 04:27:57 # Node ID 31c863bd21e8661b21d2444da755a97350887f41 # Parent e579687cb5d8cf557a3a86835aa303fed3af109a purge: hook into match.explicitdir and traversedir diff --git a/hgext/purge.py b/hgext/purge.py --- a/hgext/purge.py +++ b/hgext/purge.py @@ -97,7 +97,7 @@ def purge(ui, repo, *dirs, **opts): 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]):