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

Re: Patches for better behavior, when adding binary files?

From: Rudolf Cejka <cejkar_at_fit.vutbr.cz>
Date: 2007-01-24 00:55:13 CET

Ryan Schmidt wrote (2007/01/23):
> Keywords are not bad for all binary files. For example, it's
> conceivable that you might want to have Subversion keyword
> substitution in a Word file or in a PDF, especially using the fixed-
> width keyword expansion. Unfortunately, Subversion does not

Thanks, interesting - yes, I can imagine it.

> Therefore, it is up to you to properly
> configure your auto-props so that images and other files where
> keyword expansion is inappropriate do not receive the svn:keywords
> property.

This is my problem: I do understand, how to configure property addition,
but how to configure property "removal" during file addition? Atleast
something like this:

binary file extensions = do not use svn:eol-style and svn:keywords
all other cases not mentioned above = set svn:eol-style and svn:keywords

I can better list globs for binary files commited to svn repository,
but it is impossible for me to create a list of globs for text files.
This is why I suppress addition of svn:keywords for binary files,
because then I have small number of cases, when I have to do property
hand corrections afterwards.

> I had thought that svn:eol-style was the same way. It's interesting
> to see that Subversion already knows not to add it to binary files. I

It is fragile too, but it is better than nothing for me.

> don't think that used to be that way, but I can't find a record in
> the issue tracker that anything like this was changed in recent
> versions of Subversion.

It is a long time in Subversion, atleast since 1.2.0.

> Note that your svn:keywords specification is not correct: you need to
> omit the quotes:
> * = svn:eol-style=native;svn:keywords=Date Revision Author HeadURL Id
> Otherwise the first and last keyword will not work (because
> Subversion thinks the quotation mark is part of the keyword name and
> therefore doesn't recognize it).

Thanks, you are right - I didn't notice it before...

> >$ svn add file.gif file.txt
> >svn: File 'file.gif' has binary mime type property
>
> Then you must also have something like
> *.gif = svn:mime-type=image/gif

I really have 1.4.2 with standard configuration: rm -r ~/.subversion ;
svn help ; vi ~/.subversion/config: enable-auto-props = yes and
* = svn:eol-style=native;svn:keywords=Date Revision Author HeadURL Id

Regards.

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 24 00:55:42 2007

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.