On Fri, Aug 22, 2008 at 02:54, Janek Kozicki <janek_listy_at_wp.pl> wrote:
> Hi,
>
> I would like to learn about pre-commit hooks in SVN. And first thing
> that I would like to do is following:
>
> - Check if this commit modifies /trunk/ChangeLog
>
> - if yes: let it happen
>
> - if no:
> - Check how many commits ago this user modified /trunk/ChangeLog
> (counting only commits of this user, and skipping all other
> users who did commits in between)
>
> - if less than 5: let it happen
>
> - if more than 5: return "Error, it is your 5th commit
> without updating ChangLog, please update it". FAILURE
>
>
> Can anybody direct me to, what are the necessary SVN tools to do that?
Are you saying that you have a ChangeLog file which you maintain
inside the repository? Isn't that redundant (and extra effort/time for
your developers) when you could and should already have all that
information in the logs themselves?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-22 13:05:28 CEST