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

Re: Properties via hook?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-10-18 15:06:35 CEST

Robin Sommer <sommer@in.tum.de> writes:

> On Sun, Oct 17, 2004 at 15:00 -0500, kfogel@collab.net wrote:
>
> > You don't want hooks modifying what's being committed.
>
> Yes, I saw the warning in pre-commit.tmpl. But I thought perhaps the
> new property could be become a transaction of its own, just as if
> some other person would have added it independently. I didn't see a
> way to achieve this, though.

You don't want to do this in pre-commit, because your propset will
then cause your original commit to be out of date. Instead, you would
do this in post-commit, probably using a 20-line bindings script. The
real trick, though, would be making sure that your post-commit hook
doesn't fire off for commits generated by itself -- that's a nice way
to potentially wind up in an endless loop.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 18 15:56:35 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.