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