narrow: indicated the default of 'Yes' when confirming auto-remove-includes
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 21 Jun 2023 14:00:50 -0400
changeset 50714 e5c1e7aec973
parent 50713 ddc55fb220ba
child 50718 0ab3956540a6
narrow: indicated the default of 'Yes' when confirming auto-remove-includes
hgext/narrow/narrowcommands.py
tests/test-narrow.t
--- 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