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

RE: Commit hook and changed properties

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: 2007-10-16 21:47:14 CEST

 
> -----Original Message-----
> From: Bicking, David (HHoldings, IT)
>
> Hi,
>
> I spent some time working with svnlook and a pre-commit hook
> batch file looking for a way to identify changed properties.
> I failed. Rather than waste more time, I am here to ask for
> a bit of help. I want to identify properties by name that
> changed in value (or were added) during the current commit
> transaction. I will then take this information and determine
> if the person who is committing has the right to do so.

I managed to find more information to help me with the above. In the
pre-commit, I can use svnlook to get the user (thank goodness) and I can
also parse the "changed" output to find the paths that have property
changes. These paths can then be put through "svnlook pl" to get the
property names that are being modified or added in the transaction. I
can use this information to determine if the individual in question is
permitted to make those changes.

Is there an easier way? Since I'm in a Windows environment, I'm
considering .NET console applications for the job of hook script
commands. Would it be easier to get Python and figure it out?

--
David
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 16 21:47:41 2007

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