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

Re: svnlook in pre-commit

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-21 18:13:29 CEST

On Jun 21, 2006, at 17:20, Annick Collet wrote:

> Ryan Schmidt 21/06/2006 17:14:10
>> On Jun 21, 2006, at 16:26, Annick Collet wrote:
>>> I would like to check if the transaction is A in /tags for example.
>>> With svnlook in pre-commit , it always show the previous successfull
>>> commit but not the one just submitted !!!!
>>> how to use svnlook in a pre-commit then
>> Here's an example:
>> http://svn.haxx.se/users/archive-2006-06/0853.shtml
> I was looking at your scripts. interested in not commit in /tags.
> And I would like to have a naming convention in /tags. How to
> authorise
> only tags as digit.digit.digit.AorTorR ( as 3.2.1.A ok but a.d.dR not
> ok) ?

Please remember to use the "reply to all" feature of your mail
program so that your reply goes to the mailing list, not just me.

I didn't write the script; I just noticed that it came in on the list
today and was a good starting point for what you want to do. If you
have questions about the script, maybe the original author can help.
I'm CCing him on this email.

If you want to prevent commits to tags, that seems to be one of the
things that the script already does.

The general mode of operation of the script seems to be to use
"svnlook changed" to see what the transaction wants to do, and
parsing that output to determine if it meets site policy. If your
policy is to require a certain naming convention of tags, writing
such a hook should be possible. Just run "svnlook changed <REPO> -r
<X>" manually on a revision <X> which adds a tag, to see what it
looks like. You'll probably need to write a regular expression that
parses the lines of that output to determine if the tag name matches
your requirements.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 21 18:15:46 2006

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.