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

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

From: Kavika Vollmar <kavika_at_xilinx.com>
Date: 2005-09-07 19:25:05 CEST

> > -----Original Message-----
> > From: Hari Kodungallur [mailto:hkodungallur@gmail.com]
> > Sent: Tuesday, September 06, 2005 5:31 PM
> > To: Kavika Vollmar
> > Cc: users@subversion.tigris.org
> > Subject: Re: Hooks: How to extract SOURCE URL in post or pre-commit
> script
> >
> > 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.
>

[Kavika Vollmar]
In order to do the check whether this is allowed I need o detect that
'product1' is different from 'product2'. As far as I can tell 'svnlook
changed' will only tell me that 'product2' has changed, but not from
where the copy originated.

 Thanks!
 
 Kavika

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

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.