You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ra...@etas.de on 2004/03/31 21:09:15 UTC
Version numbers in MS Office documents
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?).
Thanx
Ralf
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Version numbers in MS Office documents
Posted by John Peacock <jp...@rowman.com>.
Ralf.Bauer-Malz@etas.de wrote:
> has anybody already had the idea of writing the version number (or any
> other keywords) into MS Office documents by pre-commit scripts?
Office documents are binary files; I don't think it is a good idea to use
keyword expansion at all. I seem to recall also that pre-commit scripts are not
supposed to be used to alter the transaction, but I might be misremembering.
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Version numbers in MS Office documents
Posted by Edmund Horner <ch...@chrysophylax.cjb.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Max Bowsher wrote:
| 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".
Ah, you're absolutely right in both cases.
Sorry, Ralf, for making it sound so easy. :-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAbBg/EbvImmpUq7gRAhWjAKCur+t0zCNby1CG893gDE3F58YOFACguBzN
YZrGK7HI/vhQ0iJ+dsZHB0M=
=GPu0
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Version numbers in MS Office documents
Posted by Max Bowsher <ma...@ukf.net>.
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
Re: Version numbers in MS Office documents
Posted by Edmund Horner <ch...@chrysophylax.cjb.net>.
-----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.
Edmund.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAa/PHEbvImmpUq7gRArMLAKDvmL5XCAYVp0OBPhdapR1JnyD01QCg2Ytg
hDc6fbuO0xhtgFmyAb+KblI=
=n3Be
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org