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

Re: how to add $Id$ automatically

From: Soo-Hyun Choi <s.choi_at_hackers.org.uk>
Date: 2007-11-19 16:50:05 CET

Okay, I've read it and understood how it may corrupt those files. Then, what
would be the general settings? I mean, do people set the SVN properties in
each directory manually by typing something like "svn propset svn:keywords
'Id' *.c{,pp} *.h Makefile"? Or do people use global settings at
~/.subversion/config something like that I did earlier, and make some
exceptional rules (If so, how do I do that)?

Thanks a lot,

On Nov 19, 2007 3:13 PM, Andy Levy <andy.levy@gmail.com> wrote:

> On Nov 19, 2007 10:09 AM, Soo-Hyun Choi <s.choi@hackers.org.uk> wrote:
> > > BTW, be very careful with what you've done there. You've told your
> > > client to apply those keywords to *all* files. If you have binary
> > > files (MS Word, images, executables, etc.) you may unwittingly corrupt
> > > them by enabling keywords on them.
> > >
> >
> >
> > Ah! What do you mean by corrupting those files unwittingly with that
> option?
> > Does this mean that if I set the option as the above and add some MS
> Word
> > (or executable) files to SVN repository, then it will corrupt the files?
> If your binary file contains that combination of characters ($Id$),
> then the SVN client will expand it. You're basically modifying the
> file from what Word expects, which could have bad consequences. In an
> executable or image, it could corrupt the file completely.
> Read
> http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
> in its entirety before considering adding keywords globally.
Received on Mon Nov 19 16:50:40 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.