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

Re: [Subclipse-users] Ignore certain version controlled files during commit

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 8 Apr 2008 10:12:59 -0400

On Tue, Apr 8, 2008 at 7:47 AM, Puneet Lakhina <puneet.lakhina_at_gmail.com> wrote:
> We have a number of properties files in our project that every developer
> modifies in their working environment for testing purposes. Every developer
> might have different values in these property files during development. Now
> everytime a developer right clicks on a project to do a commit of all files
> modified by him/her these files also get selected, and deselcting them
> everytime is tedious. Is there someway these files could be ignored by
> default. If anyone wants to actually commit values then they can select it
> explicitly.
> The other way this might work is that everyone commits these files during
> commits, but somehow they are ignored during updates. Any clues on this? Are
> we doing something wrong?
> These files are a part of the project and are not derived resources, hence I
> dont think not addidng them to version control is a solution.

You basically want a feature to ignore files that are versioned.
Subversion does not have this feature, though I have seen it requested
before. What a lot of people do in this situation is create
"template" files. For example, suppose you have a file named
"application.props". What people do is version a file named
"application.props.tmpl" and add application.props to the svn:ignore
property. The template file contains the default properties and after
users checkout they create the properties file by copying the
template. Of course they could run a script to do this if desired.
They can then manually adjust properties all they want and do not have
to worry about committing it. You can also still easily make changes
to the template and commit those which is another nice feature you get
doing it this way.

Mark Phippard
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-04-08 16:13:14 CEST

This is an archived mail posted to the Subclipse Users mailing list.

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