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

Re: Need Help

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Thu, 23 Apr 2009 06:55:38 -0500

On Apr 23, 2009, at 06:03, Jewel Nuruddin wrote:

> I work hooks with subversion and its work fine for me, but now I
> want email if from a particuler repository like I have
>
> /game/branch/test
> and
> /game/trunk/test
>
> how can I do that.

If you look in the file post-commit.tmpl that Subversion creates for
you in the hooks directory of every new repository, it begins with
the following comment:

# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repository)
# [2] REV (the number of the revision just committed)

So you can examine the first argument to your hook script to see what
repository is being committed to.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1877405

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-23 13:56:52 CEST

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.