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

Re: Authorname munging

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-05-24 18:31:47 CEST

On Mon, 2004-05-24 at 10:51, Toby Johnson wrote:

> The "pre-commit" hook script says that modifying the transaction to take
> place is unsafe, yet Ben is saying editing the authorname is fine.
> Where, then, should this edit take place?

The pre-commit hook shouldn't modify versioned data, because the client
currently assumes that it won't change, and there's no way for the
server to tell the client that data was munged.

But it *should be* safe for the pre-commit hook to change unversioned
rev/txn properties (either your own custom ones, or standard ones like
svn:author). The client makes no assumptions about those. After the
commit completes, the server sends back a structure to the client that
describes the new revnum/author/date, which the client stores.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 24 18:36:09 2004

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.