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

Re: pre-commit example

From: Felix Gilcher <felix.gilcher_at_bitextender.com>
Date: Thu, 8 Jan 2009 14:14:00 +0100

Hi Ilan,

in a pre-commit hook you must never never modify the commit. So
removing a file named thumbs.db from the commit is not possible,
however you can certainly reject a commit that contains a file named
like that.

Examples for hook-scripts can be found in the subversion subversion
repository in the contrib section [1]. While this might be overblown,
you could even use enforcer [2] to check your requirements.

cheers

felix

[1] http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
[2] http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/enforcer/

On Jan 8, 2009, at 1:49 PM, Ilan Yaniv wrote:

> Hi
>
> I guess more then one of you guys have a pre-commit script maybe bat
> or perl so I can also read that…
>
> That will not commit certain files like “thumbs.db”.
>
> If the hook will find that there is a file like that, it will be
> removed from the commit, so the commit will complete, but without
> that file.
>
>
> Thanks
>
> Ilan Yaniv
>
> Configuration Management
>
> Phone: 03-7534333 ext. 5873
>
> Ilan.Yaniv_at_timetoknow.org
>
>

--
Felix Gilcher
Bitextender GmbH
Paul-Heyse-Str. 6
D-80336 München
T: +49 89 57 08 15 16
F: +49 89 57 08 15 17
M: +49 172 840 88 28
felix.gilcher_at_bitextender.com
http://bitextender.com/
Amtsgericht München, HRB 174280
Geschäftsführer: David Zülke, Florian Clever
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1011711
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

  • application/pkcs7-signature attachment: smime.p7s
Received on 2009-01-08 14:35:15 CET

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.