Show More
@@ -101,10 +101,12 b' def purge(ui, repo, *dirs, **opts):' | |||
|
101 | 101 | status = repo.status(match=match, ignored=opts['all'], unknown=True) |
|
102 | 102 | |
|
103 | 103 | for f in sorted(status[4] + status[5]): |
|
104 | ui.note(_('removing file %s\n') % f) | |
|
104 | if act: | |
|
105 | ui.note(_('removing file %s\n') % f) | |
|
105 | 106 | remove(removefile, f) |
|
106 | 107 | |
|
107 | 108 | for f in sorted(directories, reverse=True): |
|
108 | 109 | if match(f) and not os.listdir(repo.wjoin(f)): |
|
109 | ui.note(_('removing directory %s\n') % f) | |
|
110 | if act: | |
|
111 | ui.note(_('removing directory %s\n') % f) | |
|
110 | 112 | remove(os.rmdir, f) |
General Comments 0
You need to be logged in to leave comments.
Login now