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

Re: server hooks for post-commit metadata modifications?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-12-08 15:41:38 CET

Eric Jonas wrote:
>
>>If the pre-commit hook modifies the commit transaction, the client will
>>be forever in the dark. It will think that the new revision looks one
>>way, but in reality, it will be something completely different in the
>>repository. There's currently no way for a pre-commit hook to "inform
>>the client" that something different was committed than what the client
>>sent.
>
> Thanks for explaining _why_ it was such a bad idea. Now I see the error
> of my ways. I'm really trying to have metadata that represents the sha1 of
> each committed file -- there's no reason I can't have the client do this
> by setting a property before commit for each file that's equal to the
> sha1, and then have the server simply verify that the sha1s are correct,
> and abort the commit if they're not.

That sounds like a very good solution.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 8 15:38:42 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.