absorb: make it clear what happens when no input
authorSushil khanchi <sushilkhanchi97@gmail.com>
Sat, 20 Jun 2020 11:51:34 +0530
changeset 45011 65d19d9c8e76
parent 45010 62bdb288c449
child 45012 484e04dc7f42
absorb: make it clear what happens when no input Differential Revision: https://phab.mercurial-scm.org/D8643
hgext/absorb.py
tests/test-absorb.t
--- 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