> On Wed, Feb 3, 2010 at 5:28 PM, GF <gan...@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