Ignore future changes to a file in Mercurial, but still track it -
Ignore future changes to a file in Mercurial, but still track it -
possible duplicate: mercurial: how ignore changes tracked file
i have file in mercurial repository want have stand illustration configuration file, while i'm developing want create specific changes don't want tracked, database password. tried adding file .hgignore, mercurial still notices modifications.
can have file "tracked" in mercurial repository, yet ignore future local changes file without removing repository itself?
i don't think capability exists (love see else's reply alternative though :) ). alternative i've used check file source command named "config.template" (as example). app uses file named "config", create copying template file. create sure "config" file excluded in .hgignore file don't accidentally check in sometime.
mercurial
Comments
Post a Comment