Re: "svn copy -rHEAD" copies the wrong version.
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-10-01 01:57:29 CEST
Ben Collins-Sussman wrote:
I can see how that would have been an acceptable design, but in fact the "--revision" argument is mostly supported. It is only "-rHEAD" that fails; if I intead give "-r2" when the head revision is 2, it works.
The doc. string for svn_client_copy says that the "revision" argument is used if the source is a URL; this could be taken to imply that the revision is ignored if the patch is not a URL, but it is not explicit.
(The doc. string for svn_client_copy also says that a repository commit is performed if EITHER source or dest is a URL; surely this should be just if the destination is a URL.)
> To accomplish what you want above, we could simply tell people to use
It could be.
> Or, if you want to take a harder road, 'svn cp -rX WC WC' could simply be
This is what seems to be happening; just with a bug in it. Either that or some unintended functionality is operating and should be blocked.
I don't mind whether "-r" is allowed with a local path. Anyone want to choose?
- Julian
---------------------------------------------------------------------
|
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.