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

RE: pre-revprop-change - owner only can change

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2005-10-02 14:29:33 CEST

Amund,

You'll need two things for your script ( I'm not sure which one
you mean, so I'll give them both ):

1. The user, revision & name of the property asked to change.
Those are specified as command-line parameters to the
pre-revprop-change script. You can extract them like this ( using
bash syntax, extract from pre-revprop-change.tmpl ):

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

2. The user that set the original log message.
You can find that information in the repository, as the property
'svn:author' of the specified revision. You can get the value of
that property using svnlook:

AUTHOR=`svnlook propget --revprop -r $REV $REPOS svn:author`

I typed this from memory so you'll probably have to tweak it a bit.
I'm not sure you can use $REPOS directly like this.

Hope this helps,

Lieven.

> -----Original Message-----
> From: Amund Mortensen [mailto:amund.mortensen@gmail.com]
> Sent: zondag 2 oktober 2005 11:43
> To: users@subversion.tigris.org
> Subject: pre-revprop-change - owner only can change
>
> Hey,
> I'm looking for a pre-revprop-change hook script that only
> allows the user who comitted the message to change it.
> I'v tried studieng the example, but I can't find a way to
> check which user the message belongs to.
>
> -Amund.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.9/116 - Release
> Date: 30/09/2005
>
>

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/2005
 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 2 14:32:26 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.