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

RE: Howto Question: Is it possible for the hook scripts to check each file being added or changed ?

From: White, Daniel E. <dwhite_at_witsusa.com>
Date: 2005-03-21 22:57:59 CET

OK, but how do I get the list of files ?

The commands I want to use need a file name.

Are there any examples out there doing this sort of operation ?

What I want is to be able to cancel the commit if the files being
added/changed do not meet certain criteria.

Thanks again.

-----Original Message-----
From: Ben Collins-Sussman [mailto:sussman@collab.net]
Sent: Monday, March 21, 2005 4:43 PM
To: White, Daniel E.
Cc: users@subversion.tigris.org
Subject: Re: Howto Question: Is it possible for the hook scripts to
check each file being added or changed ?

On Mar 21, 2005, at 3:25 PM, White, Daniel E. wrote:

> Is it possible to perform a check (like the existence of a property)
on
> a per-file basis in the start-commit or pre-commit hook scripts ?
>

Yes, that's exactly why start-commit or pre-commit hooks exist, as the
book says. :-)
Use a program like 'svnlook' to inspect the transaction.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 22 00:37:17 2005

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.