Show More
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | # along with this program; if not, write to the Free Software |
|
28 | 28 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
29 | 29 | |
|
30 | from mercurial import util, commands | |
|
30 | from mercurial import util, commands, cmdutil | |
|
31 | 31 | from mercurial.i18n import _ |
|
32 | 32 | import os |
|
33 | 33 | |
@@ -63,8 +63,6 b' def purge(ui, repo, *dirs, **opts):' | |||
|
63 | 63 | # --print0 implies --print |
|
64 | 64 | act = False |
|
65 | 65 | force = bool(opts['force']) |
|
66 | include = opts['include'] | |
|
67 | exclude = opts['exclude'] | |
|
68 | 66 | |
|
69 | 67 | def error(msg): |
|
70 | 68 | if abort_on_err: |
@@ -87,8 +85,7 b' def purge(ui, repo, *dirs, **opts):' | |||
|
87 | 85 | directories = [] |
|
88 | 86 | files = [] |
|
89 | 87 | missing = [] |
|
90 |
roots, match, anypats = util. |
|
|
91 | include, exclude) | |
|
88 | roots, match, anypats = cmdutil.matchpats(repo, dirs, opts) | |
|
92 | 89 | for src, f, st in repo.dirstate.statwalk(roots, match, |
|
93 | 90 | ignored=ignored, directories=True): |
|
94 | 91 | if src == 'd': |
General Comments 0
You need to be logged in to leave comments.
Login now