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

Re: Suggestions on modifications on commit

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2003-09-29 17:34:24 CEST

aengstrom@gnejs.net writes:
> On Mon, Sep 29, 2003 at 10:09:11AM -0500, Ben Collins-Sussman wrote:
> > Anders Engstr=F6m <aengstrom@gnejs.net> writes:
> >=20
> > > Any comments on this?
> >=20
> > The subversion repository only stores "contracted" keywords, like
> > $Id$. All keyword expansion is done by the client, in the working
> > copy.
> >=20
> > So I don't think you'd need any magic scripts to modify word
> > documents, other than inserting an $Id$ keyword (in the correct
> > place!) the very first time the Word doc is committed to the
> > repository. After that, the svn client will do everything for you
> > automatically.
> >=20
> Interesting... In CVS word files are handled as binary files (and
> keyword substitution is disabled - that's why we have the commitinfo
> script).

Keyword substitution is disabled in CVS *only* if you set the -kb flags
on the file, which can either be done through your .cvswrappers file or
manually. If, however, you forget to do this, CVS will happily munge
your binary files, doing both keyword substitution and EOL translation.

In Subversion the default is to do neither.

> I know subversion is supposed to handle merging/keyword-substitution
> in binary files as well

Merging of binary files? Not that I recall... perhaps you're confusing
this with the fact that Subversion efficiently stores binary files on
the server (Unlike CVS which stores a fulltext copy of each revision of
a binary file)?

> and if subversion can handle keywords in MS
> Word-files our issues would disappear (a Word template with $Author$,
> $Id$ etc. would be all that was needed).

Well, as CMike pointed out, this is really a limitation of MS Word's
file format--if we changed the length of a string in a Word file, it
would trash the file if Word relies on counted offsets.
> Anyone with exprerience of svn/cvs keywords in binary files?

Not I. :)


Brian W. Fitzpatrick    <fitz_at_red-bean.com>   http://www.red-bean.com/fitz/
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 29 17:36:46 2003

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.