Show More
@@ -4534,11 +4534,6 b' def resolve(ui, repo, *pats, **opts):' | |||||
4534 | all, mark, unmark, show, nostatus = \ |
|
4534 | all, mark, unmark, show, nostatus = \ | |
4535 | [opts.get(o) for o in flaglist] |
|
4535 | [opts.get(o) for o in flaglist] | |
4536 |
|
4536 | |||
4537 | if all and confirm: |
|
|||
4538 | if ui.promptchoice(_(b're-merge all unresolved files (yn)?' |
|
|||
4539 | b'$$ &Yes $$ &No')): |
|
|||
4540 | raise error.Abort(_('user quit')) |
|
|||
4541 |
|
||||
4542 | if (show and (mark or unmark)) or (mark and unmark): |
|
4537 | if (show and (mark or unmark)) or (mark and unmark): | |
4543 | raise error.Abort(_("too many options specified")) |
|
4538 | raise error.Abort(_("too many options specified")) | |
4544 | if pats and all: |
|
4539 | if pats and all: | |
@@ -4547,14 +4542,19 b' def resolve(ui, repo, *pats, **opts):' | |||||
4547 | raise error.Abort(_('no files or directories specified'), |
|
4542 | raise error.Abort(_('no files or directories specified'), | |
4548 | hint=('use --all to re-merge all unresolved files')) |
|
4543 | hint=('use --all to re-merge all unresolved files')) | |
4549 |
|
4544 | |||
4550 | if mark and confirm and not pats: |
|
4545 | if confirm: | |
4551 | if ui.promptchoice(_(b'mark all unresolved files as resolved (yn)?' |
|
4546 | if all: | |
4552 | b'$$ &Yes $$ &No')): |
|
4547 | if ui.promptchoice(_(b're-merge all unresolved files (yn)?' | |
4553 | raise error.Abort(_('user quit')) |
|
4548 | b'$$ &Yes $$ &No')): | |
4554 | if unmark and confirm and not pats: |
|
4549 | raise error.Abort(_('user quit')) | |
4555 | if ui.promptchoice(_(b'mark all resolved files as unresolved (yn)?' |
|
4550 | if mark and not pats: | |
4556 | b'$$ &Yes $$ &No')): |
|
4551 | if ui.promptchoice(_(b'mark all unresolved files as resolved (yn)?' | |
4557 | raise error.Abort(_('user quit')) |
|
4552 | b'$$ &Yes $$ &No')): | |
|
4553 | raise error.Abort(_('user quit')) | |||
|
4554 | if unmark and not pats: | |||
|
4555 | if ui.promptchoice(_(b'mark all resolved files as unresolved (yn)?' | |||
|
4556 | b'$$ &Yes $$ &No')): | |||
|
4557 | raise error.Abort(_('user quit')) | |||
4558 |
|
4558 | |||
4559 | if show: |
|
4559 | if show: | |
4560 | ui.pager('resolve') |
|
4560 | ui.pager('resolve') |
General Comments 0
You need to be logged in to leave comments.
Login now