I want mercurial to remove several files from the current state of the repository. However, I want the files to exist in prior history.
How do forget an
forget
A file can be tracked or not, you use hg add to track a file and hg remove or hg forget to un-track it. Using hg remove without flags will both delete the file and un-track it, hg forget will simply un-track it without deleting it.