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

Re: Svn hooks pre-commit - How, for tag operation, check than user make the tag operation in tags directory

From: Georges Martinez-Valentin <georges.martinez-valentin_at_mgeups.com>
Date: Tue, 8 Sep 2009 17:44:17 +0200

Hi David,

thanks for your answer.

Meanwhile my first email, i am looking for solution based on python 2.5
script (and Windows compliant).
I hope it is a good way to find tools on the Web.

If you have any links about this, i am very interesting

Cordialement / Regards

Georges Martinez-Valentin | APC by Schneider Electric | IT Business
| Senior Firmware Engineer - Management products
Phone: +(33).(0)4.76.18.33.41 |
Email: georges.martinez-valentin_at_mgeups.com | Site: www.apc-mge.com
Address: 140 avenue Jean KUNTZMANN ZIRST Montbonnot St Martin - 38334 ST
ISMIER
*** Please consider the environment before printing this e-mail

David Weintraub <qazwart_at_gmail.com>
08/09/2009 17:01

A
Georges Martinez-Valentin <georges.martinez-valentin_at_mgeups.com>
cc
users_at_subversion.tigris.org
Objet
Re: Svn hooks pre-commit - How, for tag operation, check than user make
the tag operation in tags directory

The problem is that there is no way to tell if a copy operation is a tag,
a branch, or someone is merely copying files. They all use the same "svn
cp" command.

Basically, if something is copied to the "tags" directory, it is a tag. If
it's copied to the branches directory, it is a branch, and if it is copied
somewhere else, it is a regular copy.

The best I can suggest is user training. Repeat over and over again to
your users that "Tags go here...". Remember that this is a revision
control system, so you can always undo what the developers did, and you
always know who was not doing what they're suppose to be doing.

It might be possible to examine a svnlook changed output to see that if
someone is copying the entire project, we can assume it is a tag. But that
might be a bit dangerous.

On Thu, Sep 3, 2009 at 8:23 AM, Georges Martinez-Valentin <
georges.martinez-valentin_at_mgeups.com> wrote:

Hello,

my problem : I want to check than any user make tags in the correct
directory.
As we use (tags, trunk & branches) directories for all the project
developpment, we want than all tags, are made in the "project/tags"
directory.

I try to use pre-commit hook, but i get 2 problems :
1. i don't arrive to determine whether if the current transation is a
COMMITtransaction or if it is a TAG transaction.
2. Any where, using svnlook, i get only the repository path of the
project, and not the final directory name as "tags".

Here below more informations about our organization, see below the draft :

/SNVroot---------/Project 1------------/tags
        | /branches
        | /trunk
        |
        |---------/Project 2------------/tags
        | /branches
        | /trunk
        |
        |---------/Project 3------------/tags
        | /branches
        | /trunk
        |

Actually, i use pre-commit hook, for check empty log. And it is running
well.

my questions :
1. do you think, than i can solve this point, using pre-commit hooks
?
2. If yes, how ?
3. how can i know if current transaction is a TAG or COMMIT one ?

Thanks for your help, and for your nice tool. (old CVS user).

Cordialement / Regards

Georges Martinez-Valentin | APC by Schneider Electric | IT Business
| Senior Firmware Engineer - Management products
Phone: +(33).(0)4.76.18.33.41 |
Email: georges.martinez-valentin_at_mgeups.com | Site: www.apc-mge.com
Address: 140 avenue Jean KUNTZMANN ZIRST Montbonnot St Martin - 38334 ST
ISMIER
*** Please consider the environment before printing this e-mail

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2392539
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-08 17:46:43 CEST

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.