Is it possible to completely remove a file and all traces of it from a mercurial repository? There was a commit of a file with some sensitive information and would like to know if it’s possible to wipe all traces of it from the repository.
Share
You can, by using the convert extension, using the –filemap option and exclude the file.
But I think (as you mess with the relations between the changeset IDs and change the changeset DAG (Directed Acyclic Graph) you end up with a new repository which cannot push/pull with the old one. Hope that’s not a problem for you.
Run some tests on it 😀