I have a setup like this.
- SVN Repository
- Live Site
- Dev Site
- Local Copy
SVN Repository is identical to Live site.
Every different sites have different config file, local.xml.
Some clients are windows/toitoise and some clients are linux servers which I have SSH access to.
My requirements are.
-
I don’t want local.xml to be changed neither on A. Repository when committing nor B. clients when updating.
-
I want local.xml to be part of every new checkouts.
-
I don’t want local.xml files on clients lingering “modified” with question mark signs after being modified.
-
I don’t want to manually “uncheck” local.xml on every commit as there are some more folders like cache and image files to be “ignored” too.
I’ve tried,
– Locking the file on Repo. That throws an ugly error when committing. I’m afraid it would break the rest of commits.
– SVN:ignore local.xml. But seems it’s still going through.
Thanks for your help.
Having the file in the ignore list is needed, but it alone will not do the trick. You’ll also need to delete the file from the repository. Run this to delete the file from SVN but keep the local file:
EDIT: A common way to keep local settings files in SVN is adding them with names like
default.local.xmland copying them tolocal.xmland modifying the settings right after the first checkout. This way you won’t risk overwriting of conflicting your actual settings file.