Patchwork [4,of,8] purge: hook into match.explicitdir and traversedir

login
register
mail settings
Submitter Siddharth Agarwal
Date May 3, 2013, 10:05 p.m.
Message ID <666d434c93e57741c306.1367618745@sid0x220>
Download mbox | patch
Permalink /patch/1549/
State Accepted
Commit 31c863bd21e8661b21d2444da755a97350887f41
Headers show

Comments

Siddharth Agarwal - May 3, 2013, 10:05 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1367209677 25200
#      Sun Apr 28 21:27:57 2013 -0700
# Node ID 666d434c93e57741c306d75e8711e246b9794631
# Parent  234e4e8080aa898afd5d3e3797ed2683bb6a5dff
purge: hook into match.explicitdir and traversedir

Patch

diff -r 234e4e8080aa -r 666d434c93e5 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 @@  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]):