You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by makl <ma...@tigris.org> on 2004/03/13 14:00:52 UTC
[BUG ?] copy doesn't check if the target already exists in the repository
svn --version
svn, version 1.0.0
compiled Feb 25 2004, 18:32:49
[...]
$ svnadmin create --bdb-txn-nosync repo
$ svn co file://`pwd`/repo wc1
$ svn mkdir -m "r1" file://`pwd`/repo/dir1
$ svn mkdir -m "r2" file://`pwd`/repo/dir2
$ svn cp file://`pwd`/repo/dir1 wc1/dir2
$ svn ci -m "r3" wc1
svn: Commit failed (details follow):
svn: Out of date: 'dir2' in transaction '4'
Adding wc1\dir2
$ svn up wc1
svn: Failed to add directory 'wc1/dir2': object of the same name already
exists
A wc1\dir1
Error or intentional behavior?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [BUG ?] copy doesn't check if the target already exists in the
repository
Posted by Philip Martin <ph...@codematters.co.uk>.
makl <ma...@tigris.org> writes:
> $ svn mkdir -m "r2" file://`pwd`/repo/dir2
> $ svn cp file://`pwd`/repo/dir1 wc1/dir2
> $ svn ci -m "r3" wc1
> svn: Commit failed (details follow):
> svn: Out of date: 'dir2' in transaction '4'
> Adding wc1\dir2
>
> Error or intentional behavior?
If you are asking whether the copy should fail then no, it should not.
The repository could well change between the copy and the commit, the
directory in the repository might get deleted.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org