I have a file in mercurial that I want dev machines to pull the file, but I want the deployment server to NOT pull the file (it has special mods to it that the dev machines don’t have). Is this possible, or should I just have a custom push to server solution instead of just doing an hg pull?
Share
A typical way to do this would be to do the following:
You store a copy of each file in the repository, and name them correctly. For instance, if the file in question is
web.config, you would store the following two in the repository:web.server.configweb.dev.configThen you would add a built step to ensure the right file was copied to the actual
web.configfile, you could use a batch file:Then you would ignore web.config itself through .hgignore: