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

Re: Hooks: How to extract SOURCE URL in post or pre-commit script

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2005-09-07 01:31:08 CEST

On 9/6/05, David Kavika Vollmar <kavika@xilinx.com> wrote:
> Hi there!
> I would like to add a hook script the checks whether a uses is trying to
> copy sub directories in between modules / projects and
> prohibits the same.
> So, assuming I have this repository structure:
> repos
> product1
> trunk
> ....
> branches
> tags
> product2
> trunk
> ....
> branches
> tags
> buildsystem
> trunk
> ....
> branches
> tags
>
> Now I would like to prohibit a user trying this:
> svn copy http://myserver/repos/product1/trunk/src
> http://mysferver/repos/product2/trunk/source
>
> The problem is that I don't see a way of extracting the information of
> the source URL with any svnlook command.

Since the copy is done between project/modules within the *same*
repository, you do not really need the entire source URL, right?
Perhaps, I am missing something?

From what I understand, you just need that relative path within the
repository, which you can obtain using "svnlook changed" command.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 7 01:32:45 2005

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