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

Re: Pre-commit and post-chekout hooks on client side

From: m christensen <dfs_at_xmission.com>
Date: 2004-09-07 21:37:39 CEST

Waldemar Augustyn wrote:

> Yeah, that's a no. But how about server side?
>
> I am interested in a similar functionality but on the server side.
> That is, I want to run a script that modifies files just before they're
> checked-in itno the repository. This is very simple with CVS and I am
> looking for ways to transfer some of my CVS scripts to SVN. So far, it
> appears, svn does not allow it. Does it?
>
Yes, it's very easy to do.

Look at the hook functionality in chapter 5 of the manual.

No, you should NEVER do what you suggest.

The reasons have been beat to death regularly, but in short....

The clients already think they know what's in the repository via the
local info cached in the .svn
directories.

The fact is 'They" comitted something and "You" Changed it after the
fact, now "They"
think they have a current copy and don't.
They will continue to think they are current 'til someone else changes
the file and bumps the rev
or you delete your refresh your ENTIRE working copy.

What are you really trying to do?
Is there a more appropriate way to do it?

Marc

 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 7 21:38:07 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.