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