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

Re: "svn copy -rHEAD" copies the wrong version.

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-09-30 21:46:59 CEST

kfogel@collab.net writes:

> Nice find! Have no idea what causes this, but agree it is an
> egregious bug...
>
> Julian Foad <julianfoad@btopenworld.com> writes:
> > svn cp -rHEAD WC-FILE NEW-WC-FILE
> >
> > does not contact the repository to determine "-rHEAD". Instead it copies the version that currently exists in the WC. The following script demonstrates it.

I think this is how we always meant/designed 'svn cp WC WC' to behave:
it copies a chunk of WC to somewhere else in the WC, and schedules it
all for addition with history. IIRC, 'svn cp WC WC' is not supposed
to take a --revision argument at *all*.

To accomplish what you want above, we could simply tell people to use
'svn cp -rX URL WC', and then make 'svn cp WC WC' not accept
--revision. I think that's a perfectly fine resolution.

Or, if you want to take a harder road, 'svn cp -rX WC WC' could simply be
converted (quietly, under the hood) to 'svn cp -rX URL WC'.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 30 21:48:35 2003

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

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