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

Re: Version numbers in MS Office documents

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-04-01 13:07:23 CEST

Edmund Horner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ralf.Bauer-Malz@etas.de wrote:
>> Hello,
>>
>> has anybody already had the idea of writing the version number (or any
>> other keywords) into MS Office documents by pre-commit scripts?
>>
>> I would much appreciate any hints (ideas, solutions?).
>
> I think the main problems are:
>
> 1. You'll need a pre-commit program that understand MS Office formats.
> 2. You'll need to somehow modify the data in the transaction. svnlook
> can't do that, but I suppose you could use the SVN bindings to
> manipulate the transaction in the DB. Another method would be to build
> a new transaction from the old one, commit it, and discard the old one
> (somehow).
>
> Other than that it sounds easy. Hope it goes well.

You absolutely *cannot* modify the versioned content of a transaction during
pre-commit, becuase the committing client will not know about the changes,
and will then have a weirdly broken working copy.

You would need to introduce a new variant of successful commit that says to
the client "commit succeeded, but you may *not* assume that you now have the
committed revision of the nodes you sent".

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 1 13:08:00 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.