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

RE: ignore local change

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Thu, 25 Mar 2010 13:01:51 -0400

> I have some local changes that I want to keep, and wish they did not show
> up in svn status.
>
> For example,
> on production
> mail = "#users_real_email#"
> on dev machine
> mail = "#fake_email_for_debugging#"
>
> I want subversion to ignore this difference when I do "svn status"
> locally.
>
> < mail = "#users_real_email#"
> ---
> > mail = "#fake_email_for_debugging#"
>
>
> But if there are other changes except for this, I want them to show upon
> "svn status".
>
> There is a need to change the file from time to time, so I don't want to
> put the whole file in svn:ignore list.
>
>
> Is there a feature in subversion or subversion-perl that allows me to let
> subversion "ignore" only certain differences within a file?

I think the most common way people do this is to create a template file and keep that in subversion. When a dev pulls down a working copy, they would copy the template file to the correct file name and edit it with their email address for example.

http://subversion.apache.org/faq.html#ignore-commit

BOb
Received on 2010-03-25 18:01:12 CET

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.