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

RE: svn:ignore an existing file

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 3 Feb 2010 10:20:02 -0500

> On Wed, Feb 3, 2010 at 5:28 PM, GF <ganfab_at_gmail.com> wrote:
> Hello everyone.
> I've two question about svn:ignore
>
> 1) I've a file that MUST exist in the repository in its "default"
> version, but i don't want that people to commit any local change to
> it. Is there a way to have this behaviour with svn:ignore?
> I mean that with "svn co ..." that file will be checked out as it is
> in the repository, but any local change to it will not be included of
> any "svn commit ..."
>
> 2) If the file i wish to ignore starts with a dot (for example
> .myfile) should I use some escaping of the dot in the svn:ignore
> property?
>
>
>  GF
>
> You may try out the pre-commit hook + svnlook changed command.
> These might be help !

The real answer here is don't version that file... version a .template of it. Having a file in the working copy that is changed but you can't commit is a thorn in the side of using it. Check out the FAQ.

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

BOb

Received on 2010-02-03 16:20:03 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.