I want to sell a copy of my system and transfer the source code to my clients. I am using Mercurial as a VCS. There is some sensitive data in my code. For example, Amazon passkey / secret key, database passwords and ssl private keys. These keys are written to code or configuration files, for example:
s3.storages:
access_key: <secret>
secret_key: <secret>
Before passing my code to them, I need to clear all this sensitive data in the code base. But they are all in history (changeets). With Mercurial, how can I clear this secret?
source
share