We are using CakePHP for a new application, and we are using Mercurial as a source control tool. (Mercurial uses a single file .hgignorein the root directory, unlike (for example) CVS, which uses .cvsignorein any directory.)
I would like to exclude the contents of a directory app/tmp/from the source control (as they change all the time and can be restored), but I can not add app/tmp/*to .hgignore, since the standard directories tmp( cache, logs, sessions, testsand cache/models, cache/persistent, ...) will not be absent from new clones made hg clone, which leads to errors.
I currently have in hgignore:
app/tmp/logs/*.log
app/tmp/cache/persistent/cake_*
app/tmp/cache/models/cake_*
It would be nice to have a โstandardโ that could be used in all projects. Can anyone suggest a complete solution?
Rainyseason
source
share