[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: Joshua Oreman <oremanj_at_gmail.com>
Date: 2007-08-30 11:20:23 CEST

On 8/29/07, reimund bley <reimundbl@googlemail.com> wrote:
> Hello all,
>
> 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?

-- Josh

>
> Versions of svn/apache:
> svn help:
> Subversion command-line client, version 1.3.2.
> apache error.log:
> [Wed Aug 29 23:23:36 2007] [notice] Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.2
> mod_ssl/2.0.55 OpenSSL/0.9.8b configured -- resuming normal operations
>
>
> I looked up the svn issue tracker for keywords: 'keyword' and 'binary' and
> didnt find any similar issues.
> I want to apologise the length of the attached file but I tried to 'gcut' it
> down but then the bug disappears.
>
> Thanks in advance, in the hope to make a good tool a very little bit better
> Reimund
>
> muehe@saturn ~/quill/package>md5sum libQuill.cxt
> 0b6fe7eff6100948439894f051324f2a libQuill.cxt
>
> muehe@saturn ~/quill/package>svn propset svn:keywords Id libQuill.cxt
> property 'svn:keywords' set on 'libQuill.cxt'
>
> muehe@saturn ~/quill/package>svn ci . -m test_binary_keywords
> Sending package/libQuill.cxt
> Transmitting file data .
> Committed revision 266.
>
> muehe@saturn ~/quill/package>!md5
> md5sum libQuill.cxt
> f825737e720e889a1470058abd4ff98b libQuill.cxt
>
> muehe@saturn ~/quill/package>svn -v proplist libQuill.cxt
> Properties on 'libQuill.cxt':
> svn:mime-type : data/context
> svn:keywords : Id
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail:
> users-help@subversion.tigris.org
>
>

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