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

SVN MOVE don't perform a delete in some case

From: Yann Crueghe <ext_crueghe.yann_at_agora.msa.fr>
Date: Fri, 16 Apr 2010 09:40:34 +0200

Hi !

When i refer to the svn-book 1.6, it's written that a svn move perform
first a svn copy and then a svn delete.
But in some case, the command never perform a svn delete.
To test, i have written a pre-commit hook who deny deletion of a branch
catching a "D ReposPath" action.

*Test 1 : Try to rename a directory BRANCHE to BRANCHE_1*

*Command :*
svn move --message "Rename BRANCHE to BRANCHE_1"
http://tetris.agora.msanet:16060/svn/METIER/y78amodifier/branches/BRANCHE
http://tetris.agora.msanet:16060/svn/METIER/y78amodifier/branches/BRANCHE_1

*Hook params :*
D y78amodifier/branches/BRANCHE/

*Command result : *
A repository hook failed
svn: Commit blocked by pre-commit hook (exit code 1) with output:
It's not allowed to rename or delete a branch.

*Test 2 : Try to rename a directory BRANCHE to BRANCH*

*Command :*
svn move --message "Rename BRANCHE to BR"
http://tetris.agora.msanet:16060/svn/METIER/y78amodifier/branches/BRANCHE
http://tetris.agora.msanet:16060/svn/METIER/y78amodifier/branches/BR

*Hook params :*
A y78amodifier/branches/BRANCH/

*Command result : *
Commit done without error.

Do you think it's a bug ?

Thank you,
Have a great day.

Yann

Ce message est protégé par les règles relatives au secret des correspondances. Il est donc établi à destination exclusive de son destinataire. Celui-ci peut donc contenir des informations confidentielles. La divulgation de ces informations est à ce titre rigoureusement interdite. Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, this message is intended solely for the attention of the addressee. This message may contain privileged or confidential information, as such the disclosure of these informations is strictly forbidden. If, by mistake, you have received this message, please return this message to the addressser whose e-mail address is written above and destroy this message and all files attached.

Received on 2010-04-16 09:44:21 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.