changeset 49032 | 3f6ef67e7a60 |
parent 49031 | 9be7da341885 |
child 49084 | ea98850a136e |
--- 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)