absorb: make it clear what happens when no input
Differential Revision: https://phab.mercurial-scm.org/D8643
--- a/hgext/absorb.py Wed Jun 17 17:46:30 2020 +0530
+++ b/hgext/absorb.py Sat Jun 20 11:51:34 2020 +0530
@@ -1051,7 +1051,7 @@
not opts.get(b'apply_changes')
and state.ctxaffected
and ui.promptchoice(
- b"apply changes (yn)? $$ &Yes $$ &No", default=1
+ b"apply changes (y/N)? $$ &Yes $$ &No", default=1
)
):
raise error.Abort(_(b'absorb cancelled\n'))
--- a/tests/test-absorb.t Wed Jun 17 17:46:30 2020 +0530
+++ b/tests/test-absorb.t Sat Jun 20 11:51:34 2020 +0530
@@ -97,7 +97,7 @@
84e5416 commit 5
ff5d556 commit 3
f548282 commit 1
- apply changes (yn)? y
+ apply changes (y/N)? y
saved backup bundle to * (glob)
3 of 3 chunk(s) applied
$ hg annotate a