Show More
@@ -2386,6 +2386,16 b' def purge(' | |||
|
2386 | 2386 | elif nb_ignored: |
|
2387 | 2387 | msg = _(b"permanently delete %d ignored files?") |
|
2388 | 2388 | msg %= nb_ignored |
|
2389 | elif removeemptydirs: | |
|
2390 | dir_count = 0 | |
|
2391 | for f in directories: | |
|
2392 | if matcher(f) and not repo.wvfs.listdir(f): | |
|
2393 | dir_count += 1 | |
|
2394 | if dir_count: | |
|
2395 | msg = _( | |
|
2396 | b"permanently delete at least %d empty directories?" | |
|
2397 | ) | |
|
2398 | msg %= dir_count | |
|
2389 | 2399 | else: |
|
2390 | 2400 | # XXX we might be missing directory there |
|
2391 | 2401 | return res |
General Comments 0
You need to be logged in to leave comments.
Login now