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

'svn cp wc wc' requires repository access (1.5.x issue)

From: Bert Huijben <B.Huijben_at_competence.biz>
Date: Mon, 17 Mar 2008 15:33:10 +0100

        Hi All,

Using a private repository, when running in a working copy:

# svn cp --username nouser <existing-file> <new-file>

I get a password prompt to get valid user credentials to contact the
server to retrieve something; possibly merge information. *)

(When the repository allows anonymous reading (as subversions own
repository) the prompt will not show)

In september 2007, when we still had 'svn cp -g ...' I would have
expected this behaviour.
(cacknin refered to: http://svn.haxx.se/dev/archive-2007-09/0494.shtml),
but if I remember correctly this behaviour was removed when the implicit
mergeinfo was added.

The svn clients help text even contains:

 # svn help cp
 <snip>

 WARNING: For compatibility with previous versions of Subversion,
 copies performed using two working copy paths (WC -> WC) will not
 contact the repository. As such, they may not, by default, be able
 to propagate merge tracking information from the source of the copy
 to the destination.

 <snip>

What behaviour should I expect in a 1.5 client?

We should either fix the behaviour or update the helptext.

After some research on irc cacknin added:
===
<cacknin> Bert: just reproduced; it seems that although I'm thrown an
error, the copy *does* happen, and without the
+mergeinfo stuff
<cacknin> I think this is a bug since 'svn help cp' says exactly the
opposite: "WARNING: For compatibility with
+previous versions of Subversion,copies performed using two working copy
paths (WC -> WC) will not contact the
+repository."
==

        Bert

*) I originally found the issue using my non primary user for a wc
operation instead of an explicit user, so it has nothing to do with
adding the explicit --username triggering something

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-17 15:33:35 CET

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.