I’ve noticed on many occasions that I’ll start a project with a Subversion repo and immediately add/commit all the files included with Cake’s nightly build including the tmp/ directory. If you’ve ever done this, you’ll know it’s kind of a pain always having those cache/log files showing up when you commit. So, for my benefit, I’m posting these few lines of code in order for me to refer to later.
From the app/ directory:
svn export tmp tmpBAK
svn rm --force tmp
svn ci -m 'Removing directory "tmp".'
mv tmpBAK tmp
svn propset svn:ignore 'tmp' .
svn ci -m 'Ignoring "tmp" directory.'
2 responses so far ↓
1 Paul Wright // Aug 7, 2008 at 7:33 pm
Just wondering if you have had any problems after tdoing the code above. I need to do that too. I remember coming across someone who said they “encountered wierd behaviors in the repo” afterwards, or something alike. Can’t find that post again.
Thanks,
Paul
2 admin // Aug 7, 2008 at 8:32 pm
Paul,
So far, I have not had any trouble with the above commands. Just remember that I’m running these after I’ve already added the tmp directory to the repo.
Regards!
PJ
Leave a Comment