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

Re: problem with svn:keywords and binary files

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2003-10-28 06:58:57 CET

Ryan Ordway <ryan@nwgeeks.com> writes:
>
> It seems that svn propset svn:keywords don't care what type of
> file the target file is. If you include the $Id$ keyword and, for example,
> a Word document contains that keyword the file is destroyed when svn tries
> to replace it with the Id string. Should svn determine whether or not to
> honor svn:keywords, or invoker beware?

Maybe we should document the danger further in the book, but svn already
does The Right Thing--it doesn't expand keywords by default. You have
to turn keyword expansion on, and only then does Subversion expand
keywords.

So, to answer your question, I would say that it behaves correctly as
is, but could probably use a little more documentation about the dangers
of turning on keyword expansion on non-text files. There are plenty of
ways that you can use Subversion (or just about any software for that
matter) to shoot yourself in the foot--this is just one of them. :)
 
> I couldn't find this anywhere in the issue tracker, hopefully this
> is the right place to bring this up.

This is a fine place. users@subversion.tigris.org may be more
appropriate, but I dunno.

-Fitz

--
Brian W. Fitzpatrick    <fitz_at_red-bean.com>   http://www.red-bean.com/fitz/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 28 06:59:40 2003

This is an archived mail posted to the Subversion Dev mailing list.