[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: use case for config files in repository

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-04-12 15:26:46 CEST

Dan Allen wrote:

>I have a question regarding configuration files in a repository.
>Assume that I have a configuration file just as log4j.properties or
>some database connection configuration file. Now, this file needs
>to be in the repository because it is relevant to the project, but
>certain fields in the file change, like username and/or password or
>perhaps logfile location based on the computer on which the program
>is running. After I checkout a version of the repository onto a
>computer, would there anyway to tell subversion that I no longer
>want to consider this file when updating or committing?

No, you can't do that, but you can do something else: Check in a
template for that file under a different name, for example,
"log4j.properties.template", and require people to copy it to
"log4j.properties" and customize that. You can tell Subversion to ignore
that file.

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 12 15:27:31 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.