This adds a prompt that asks whether or not a removed file is to be undeleted in hg revert -i
+ if interactive:
+ choice = repo.ui.promptchoice(
+ _("Undelete file %s (Yn)?$$ &Yes $$ &No") % f)
Nit: "undelete" (no capital letter) per Mercurial's convention.
And I don't think "undelete" is good for user-facing messages. Perhaps, it
can be phrased as "add back removed file %s (Yn)?".