You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rahul <ra...@gmail.com> on 2007/03/22 04:43:14 UTC

Querry for tagging

Hi
             I am facing a problem for tags
             If I create a tag using command
    svn copy http:///repos/xyz http:///repo/tags/1
then the file or heirarchy under xyz is copied under 1
for example if
xyz/1.txt
xyz/2.txt
then 1 will contain 1.txt and 2.txt and structure under 1 will be
1/1.txt
1/2.txt
but if i run this command again unknowingly that 1 is already there
then it will copy folder xyz and place the files in them again
then 1 will have
1/1.txt
1/2.txt
1/xyz/1.txt
1/xyz/2.txt

but in third time it will give an error
svn: Path '1/xyz' already exists

Is there anything to generate error on the second attempt itself so tht
structure wont be hampered as i dont want that xyz to be created.

Regards
Rahul

"I LIKE TO WALK IN RAIN","SO NO ONE CAN SEE MY TEARS"

Re: Querry for tagging

Posted by Dmitri Colebatch <di...@colebatch.com>.
Hi Rahul,

Have a look at the pre-commit-check script on
http://subversion.tigris.org/tools_contrib.html#hook_scripts

cheers
dim

On 3/22/07, Rahul <ra...@gmail.com> wrote:
> Hi
>              I am facing a problem for tags
>              If I create a tag using command
>     svn copy http:///repos/xyz http:///repo/tags/1
> then the file or heirarchy under xyz is copied under 1
> for example if
> xyz/1.txt
> xyz/2.txt
> then 1 will contain 1.txt and 2.txt and structure under 1 will be
> 1/1.txt
> 1/2.txt
> but if i run this command again unknowingly that 1 is already there
> then it will copy folder xyz and place the files in them again
> then 1 will have
> 1/1.txt
> 1/2.txt
> 1/xyz/1.txt
> 1/xyz/2.txt
>
> but in third time it will give an error
> svn: Path '1/xyz' already exists
>
> Is there anything to generate error on the second attempt itself so tht
> structure wont be hampered as i dont want that xyz to be created.
>
> Regards
> Rahul
>
> "I LIKE TO WALK IN RAIN","SO NO ONE CAN SEE MY TEARS"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Querry for tagging

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 21, 2007, at 23:43, Rahul wrote:

>              If I create a tag using command
>     svn copy http:///repos/xyz http:///repo/tags/1
> then the file or heirarchy under xyz is copied under 1
> for example if
> xyz/1.txt
> xyz/2.txt
> then 1 will contain 1.txt and 2.txt and structure under 1 will be
> 1/1.txt
> 1/2.txt
> but if i run this command again unknowingly that 1 is already there
> then it will copy folder xyz and place the files in them again
> then 1 will have
> 1/1.txt
> 1/2.txt
> 1/xyz/1.txt
> 1/xyz/2.txt
>
> but in third time it will give an error
> svn: Path '1/xyz' already exists

This is standard Unix copy behavior.


> Is there anything to generate error on the second attempt itself so  
> tht structure wont be hampered as i dont want that xyz to be created.

This should work: You can configure svnperms.py (I believe) to allow  
people to create tags, but not to modify them. That would include  
modification of the kind you encounter when you try to create a tag  
that's already there.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org