[Request] [+ ] D8643: absorb: make it clear what happens when no input
khanchi97 (Sushil khanchi)
phabricator at mercurial-scm.org
Sat Jun 20 06:20:21 UTC 2020
khanchi97 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D8643
AFFECTED FILES
hgext/absorb.py
tests/test-absorb.t
CHANGE DETAILS
diff --git a/tests/test-absorb.t b/tests/test-absorb.t
--- a/tests/test-absorb.t
+++ b/tests/test-absorb.t
@@ -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
diff --git a/hgext/absorb.py b/hgext/absorb.py
--- a/hgext/absorb.py
+++ b/hgext/absorb.py
@@ -1045,7 +1045,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'))
To: khanchi97, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200620/a24ad276/attachment.html>
More information about the Mercurial-patches
mailing list