diff -r 9be7da341885 -r 3f6ef67e7a60 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Mon Mar 28 10:43:06 2022 -0700 +++ b/mercurial/cmdutil.py Mon Mar 28 10:43:10 2022 -0700 @@ -3752,6 +3752,12 @@ if f in newlyaddedandmodifiedfiles: continue + if interactive: + choice = repo.ui.promptchoice( + _(b"add new file %s (Yn)?$$ &Yes $$ &No") % uipathfn(f) + ) + if choice != 0: + continue prntstatusmsg(b'add', f) checkout(f) repo.dirstate.set_tracked(f)