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

RE: Re: Post commit script for losers who steal even revisions

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-08-25 18:55:14 CEST

> -----Original Message-----
> From: Karl Fogel [mailto:kfogel@google.com]
> Subject: Re: Post commit script for losers who steal even revisions
> In a post-commit hook, the commit has already happened, so it's too
> late. You need a pre-commit hook. A pre-commit hooks doesn't know
> the upcoming revision number, but it does know the *current* head
> revision number. So if that number is N-1, where N % 10 == 0, and the
> user is this loser, then you can block the commit. Once the youngest
> rev advances to N or beyond, he'll be able to commit again.

Or you could use the more accurate post-commit hook to change the
svn:author field to 'Get a Life'.


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA624

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 25 18:57:20 2006

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.