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

Re: Create a copy (branch the head version) fails with no error message when branch already exits

From: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-09-02 14:27:33 CEST

Jörg Eichhorn <eichhorn@ponton-consulting.de> wrote on 09/02/2005 03:08:49
AM:

> when trying to create a branch which already exists in the repository,
the
> user doesn't get feedback that the operation failed. Also no output
> besides the command which is executed is written in the svn console.
> This behavior was found using subclipse 0.9.33 on windows.
>
> When using the subversion command line client directly, the user gets
the
> correct error message, that the path 'branches/branchname' already
exists.
>
> Is this a know problem?

If it is a problem, it is in JavaHL not Subclipse. It is up to the
adapter to report errors.

FWIW, I thought that in the situation you describe, you typically do not
get an error, which is actually bad. The copy command will just copy
inside of the target instead of creating the target. There was a big
discussion about this on the SVN users@ list just a few weeks ago.

Consider the scenario where a company uses an incrementing tag name
policy. If two users try to use copy to create the same tag name. For
example, they both run this command:

svn cp url://repos/Project/trunk url://repos/Project/tags/tag50

The first user will get:

/tags
  |--tag50

And the second user will get:

/tags
  |--tag50
     |--trunk

I just verified this using the command line. Only the 3rd time that you
run the command will it fail, because now it wants to create "trunk" but
it already exists.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Fri Sep 2 22:27:33 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.