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

Svn tags and branch creation

From: Patwardhan, Rajesh <rajesh.patwardhan_at_etrade.com>
Date: 2007-08-27 06:56:50 CEST

Hi,
Wondering how users are handling the creation of tags and branches if a
branch or tag already exists ...

For e.g
1/ Url: http://svn.mycompany.com/svn/

2/ I have the typical project -- trunk
                                           branches --|
                                           --> mybranch
                                           tags

Now if a branch for e.g. mybranch exists and I try to create it again

3/ svn copy $URL/trunk $URL/branches/mybranch
 now if the mybranch exists then I would expect the svn operation to
fail ..
 But I get
 mybranch/trunk

Any hints or scripts.

I am contemplating using svn ls from within the pre-commit hook. But svn
ls for existing or non existing url only returns a exit code of 0, so I
have to rely on the message returned by the command ...

In case it exists then listing else non existent url error message.

Is this message guaranteed to not change?

Regards,
Rajesh
Received on Mon Aug 27 06:54:21 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.