Show More
@@ -2442,6 +2442,7 b' def purge(' | |||
|
2442 | 2442 | status = repo.status(match=matcher, ignored=ignored, unknown=unknown) |
|
2443 | 2443 | |
|
2444 | 2444 | if confirm: |
|
2445 | msg = None | |
|
2445 | 2446 | nb_ignored = len(status.ignored) |
|
2446 | 2447 | nb_unknown = len(status.unknown) |
|
2447 | 2448 | if nb_unknown and nb_ignored: |
@@ -2463,9 +2464,9 b' def purge(' | |||
|
2463 | 2464 | b"permanently delete at least %d empty directories?" |
|
2464 | 2465 | ) |
|
2465 | 2466 | msg %= dir_count |
|
2467 | if msg is None: | |
|
2468 | return res | |
|
2466 | 2469 |
|
|
2467 | # XXX we might be missing directory there | |
|
2468 | return res | |
|
2469 | 2470 | msg += b" (yN)$$ &Yes $$ &No" |
|
2470 | 2471 | if repo.ui.promptchoice(msg, default=1) == 1: |
|
2471 | 2472 | raise error.CanceledError(_(b'removal cancelled')) |
General Comments 0
You need to be logged in to leave comments.
Login now