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

Re: binary file is changed if svn:keywords Id is set

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-30 23:02:55 CEST

On Aug 30, 2007, at 04:20, Joshua Oreman wrote:

> On 8/29/07, reimund bley wrote:
>
>> Im a happy and content svn-user since a few years; thanks to all
>> the effort
>> creating such a useful tool; especially the webdav/ssl feature is
>> most
>> useful behind a firewall o;) I'm mailing the first time, and I
>> want to
>> focus your attention to a behaviour of svn I consider a bug (or at
>> least a
>> feature I cant think of an useful application). If you set the
>> svn:keywords
>> = Id property to this file and check it in, svn changes it as you
>> can see
>> from the md5sum although its explicitely declared to be mime-type =
>> non_text/XX
>
> "Well don't do that then!"
>
> You have to manually set the svn:keywords property on files you want
> it for, so Subversion doesn't try to second-guess whether you *really*
> want keyword expansion. Why can't there be a legitimate reason for
> keyword expansion in a binary file? Maybe it's a particularly
> resilient binary format.
>
> I don't consider this a bug. Is the behavior causing any problems at
> your site? If so, could you elaborate further?

As Joshua said: It's not a bug. Don't set "svn:keywords" on files
where you do not desire keyword expansion.

svn:keywords can indeed be useful for some binary files, like
Microsoft Word files, if you use the fixed-length keyword tokens
instead of the usual variable-length keyword tokens. See:

http://svnbook.red-bean.com/en/1.4/
svn.advanced.props.special.keywords.html

and scroll down to "Subversion 1.2 introduced a new variant of the
keyword syntax"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 30 23:01:39 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.