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

can't 'svn cp' *twice* - bug or prohibited?

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-12-09 22:24:22 CET


I've got a file in a working copy. Actually, I want a second copy of
it. So I 'svn cp' it. Fine.

A few weeks later I realise that the copy has not been updated to
stay in line with the 'original', which has had many changes applied
and commited in the intervening period.

Rather than 'cp' it, and lose the knowledge of where the cp-induced
changes come from, I'd like to 'svn cp' it again.

Unfortunately it doesn't work. It says:

        svn: Entry already exists
        svn: file `wc/file2' already exists.

Is there some reason I'm not seeing why this has to be prohibited,
or is it a bug? I checked the issues but didn't manage to find a match.

This is 4042.

Here's the recipe:

        svnadmin create repos
        svn co file://`pwd`/repos wc

        touch wc/file1
        svn add wc/file1
        svn commit -m "added file1" wc

        svn cp wc/file1 wc/file2
        svn commit -m "copied file1 to file2" wc
        echo "here is a change to file1" > wc/file1
        svn commit -m "changed file1" wc

        svn cp wc/file1 wc/file2


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 9 22:25:10 2002

This is an archived mail posted to the Subversion Dev mailing list.