[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: Jewel Nuruddin <jungi_unavailable_at_yahoo.com>
Date: Thu, 23 Apr 2009 06:22:04 -0700 (PDT)

Thank you very much, I had seen this now I received mail both from

/game/branch/test (Actual repository path --> https://svn.game.com/game/branch/test)
and
/game/trunk/test (Actual repository path ---> https://svn.game.com/game/trunk/test)

I want to get mail only from /game/trunk/test  this repository

Would you please kindly give me and example

Thanks

--- On Thu, 4/23/09, Ryan Schmidt <subversion-2009a_at_ryandesign.com> wrote:

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Subject: Re: Need Help
To: "Jewel Nuruddin" <jungi_unavailable_at_yahoo.com>
Cc: users_at_subversion.tigris.org
Date: Thursday, April 23, 2009, 8:55 PM

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=1878420

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-23 15:23:00 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.