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

Re: Telling SVN to ignore Changes to a file

From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2006-12-07 01:37:07 CET

Don't have those files stored in source control using those filenames.
Store a version of the file using a slightly different filename, such as
web.config.default. When you check out a working copy, copy
web.config.default to web.config. Now you can change web.config as much
as you like and it will never be flagged as modified for commit because
it is not under source control.

Walden H. Leverich wrote:
> We've got several files in our web application (web.config and 
> settings.xml in our case, in Java it would be a .properties file) that 
> we need to change the contents of based on the local machine we're 
> installed on. For example, one of the things in settings.xml is the 
> path on the local machine to store attachments uploaded through the 
> application.
> I'm looking for a way to tell svn that changes to a particular file 
> aren't to be committed when I do my commits. This could be an svn 
> thing, or a TortoiseSVN thing since that's out interface.
> snv:ignore doesn't seem to accomplish this. I'm thinking of something 
> along the lines of an svn:ignore-content-changed type flag which would 
> tell svn to ignore this file and not commit it if the content changed. 
> If a property changed then commit the property change. The result 
> would be if we did ever want to commit a change, we'd remove the flag, 
> make the change, and add back the flag.
> Am I missing something obvious? Any suggestions?
> -Walden
> -- 
> Walden H Leverich III
> Tech Software
> (516) 627-3800 x3051
> WaldenL@TechSoftInc.com
> http://www.TechSoftInc.com <blocked::blocked::http://www.techsoftinc.com/>
> Quiquid latine dictum sit altum viditur.
> (Whatever is said in Latin seems profound.)
This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 7 01:38:03 2006

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

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