[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: Robert Mohr <mohr.42_at_gmail.com>
Date: 2005-03-21 23:12:04 CET

See <http://svnbook.red-bean.com/en/1.1/ch09s03.html#svn-ch-9-sect-3.2>,
and more specifically, <http://svnbook.red-bean.com/en/1.1/re44.html>.

On Mon, 21 Mar 2005 16:57:59 -0500, White, Daniel E. <dwhite@witsusa.com> wrote:
> 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
>
>

---------------------------------------------------------------------
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:36:29 2005

This is an archived mail posted to the Subversion Users mailing list.