How to clear confidential data in mercury change sets?

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:

# settings of Amazon S3 storage
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?

+3
source share
1 answer

If you provide the customer with only a snapshot, you can do this after launch hg archive.

, hg convert, .

, , AWS - Amazon .

. config.sample, config.actual .hgignore.

+7

All Articles