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

Re: Querry for tagging

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-22 06:44:52 CET

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
Received on Thu Mar 22 06:45:22 2007

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.