Quote from: sirlancelot at Oct 29, 2007, 05:10 PM
The usual naming scheme for generic config files is [tt]config.php-dist[/tt]. All you do is add "-dist" to your generic config file and then make a new config without "-dist" for your local config file.
’svn:ignore’ is a folder property, as described in Subversion Properties Documentation.
Enjoy!
Thanks!
It’s a thorny problem because, at this stage of development, the config file may undergo major changes with variables being added and deleted, so I’d like to have it under version control.
It’s a fairly large file with lots of options that I need to turn on and off to test things. The problem is that the one I’m working on has to be the local version. It would be somewhat perilous to try to merge the changes into the -dist version (especially without merging in the strictly local changes like my email address and server name).
Also, the -dist version will have all the variables set to their default settings but the one I work with won’t.
I think I’m probably going to have to do things the old-fashioned way and just merge the changes in very carefully by hand. Your suggestion of having an extra file is really helpful, though. I hadn’t thought of that.
Here’s the big questions: Would both files normally be under version control?
BTW, in TortoiseSVN you
can svn:ignore individual unversioned files. I’m not sure if that option is available on the SVN command line, but this is from the TSVN help file:
If you right click on a single unversioned file, and select the command TortoiseSVN → Add to Ignore List from the context menu, a submenu appears allowing you to select just that file, or all files with the same extension. If you select multiple files, there is no submenu and you can only add those specific files/folders.
Bob