In the pre-commit hook you can use svnlook to get the path of what is
actually being committed. Mind that you don't have a revision number in
the pre-commit hook, but a transaction. You can use svnlook with either.
 
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851     VAT Reg No 778499447
 
________________________________
 
From: Jared Sheehan [mailto:jsheehan@caci.com] 
Sent: 28 November 2007 16:20
To: users@subversion.tigris.org
Subject: SVN Hooks.
 
I integrated SVN with TeamTrack Recently to verify that a certain Defect
was in the TeamTrack database.  My question is that we have a client
using this repository as well.  They do not want to have to check in
based on Defects.  I want to limit our checkins, not theirs.  They are
on a different branch in the same repository.  How would i handle this
with my pre-commit hook if they are checking in.  The repository path is
passed to my pre-commit.bat which does not help me, and the revision
number is being passed which doesn't help me either.  What should i
parse to make sure that their particular branch is being checked into
and not mine.  I assume a path name or some such.  Question is where
would i find that path name.  For instance under my repository are two
projects:  TheirProject, and MyProject.  I need to make sure that on a
checkin to TheirProject then their is no defect checking in TeamTrack.
On a checkin to MyProject then I need to limit the checkins.  Thanks.. 
Jared A. Sheehan
Java Developer
CACI ENBOSS project
4114 Legato Road
Fairfax, VA 22033
Office: (703) 460-1565
Received on Wed Nov 28 17:28:48 2007