changeset 50714:e5c1e7aec973

narrow: indicated the default of 'Yes' when confirming auto-remove-includes
author Jason R. Coombs <jaraco@jaraco.com>
date Wed, 21 Jun 2023 14:00:50 -0400
parents ddc55fb220ba
children 0ab3956540a6
files hgext/narrow/narrowcommands.py tests/test-narrow.t
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Wed Jun 21 15:55:07 2023 +0200
+++ b/hgext/narrow/narrowcommands.py	Wed Jun 21 14:00:50 2023 -0400
@@ -647,7 +647,7 @@
                     if (
                         ui.promptchoice(
                             _(
-                                b'remove these unused includes (yn)?'
+                                b'remove these unused includes (Yn)?'
                                 b'$$ &Yes $$ &No'
                             )
                         )
--- a/tests/test-narrow.t	Wed Jun 21 15:55:07 2023 +0200
+++ b/tests/test-narrow.t	Wed Jun 21 14:00:50 2023 -0400
@@ -486,14 +486,14 @@
   looking for unused includes to remove
   path:d0
   path:d2
-  remove these unused includes (yn)? n
+  remove these unused includes (Yn)? n
   $ hg tracked --auto-remove-includes
   comparing with ssh://user@dummy/master
   searching for changes
   looking for unused includes to remove
   path:d0
   path:d2
-  remove these unused includes (yn)? y
+  remove these unused includes (Yn)? y
   looking for local changes to affected paths
   moving unwanted changesets to backup
   saved backup bundle to $TESTTMP/narrow-auto-remove/.hg/strip-backup/*-narrow.hg (glob)
@@ -521,7 +521,7 @@
   looking for unused includes to remove
   path:d0
   path:d2
-  remove these unused includes (yn)? y
+  remove these unused includes (Yn)? y
   looking for local changes to affected paths
   deleting unwanted changesets
   deleting data/d0/f.i