This adds a prompt that asks whether or not a removed file is to be undeleted in hg revert -i
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
+ 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)?".
Comment Actions
@yuja thanks for the review . I have updated the revision please tell if anything else needs to be done.