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