diff hgext/purge.py @ 14322:a90131b85fd8

scmutil: drop aliases in cmdutil for match functions
author Matt Mackall <mpm@selenic.com>
date Fri, 13 May 2011 14:58:24 -0500
parents c16ec14d44b6
children 35c2cc322ba8
line wrap: on
line diff
--- a/hgext/purge.py	Fri May 13 14:48:48 2011 -0500
+++ b/hgext/purge.py	Fri May 13 14:58:24 2011 -0500
@@ -25,7 +25,7 @@
 
 '''command to delete untracked files from the working directory'''
 
-from mercurial import util, commands, cmdutil
+from mercurial import util, commands, cmdutil, scmutil
 from mercurial.i18n import _
 import os, stat
 
@@ -96,7 +96,7 @@
             os.remove(path)
 
     directories = []
-    match = cmdutil.match(repo, dirs, opts)
+    match = scmutil.match(repo, dirs, opts)
     match.dir = directories.append
     status = repo.status(match=match, ignored=opts['all'], unknown=True)