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

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

From: Paul Burba <ptburba_at_gmail.com>
Date: Mon, 24 Mar 2008 11:17:03 -0400

On Thu, Mar 20, 2008 at 6:51 AM, Bert Huijben <bert_at_vmoo.com> wrote:
> Hi All,
>
> When I posted this issue on IRC this monday we concluded we had at least a
> documentation bug and possibly an incompatible api change in 1.5 which
> should be resolved before releasing 1.5.
>
> Could anyone with more knowledge about the workingcopy-copy implementation
> /please/ take a look at this.
>
> It is easy to reproduce the repository access using:
>
> # svn --username guest co
> http://sharpsvn.open.collab.net/svn/sharpsvn/trunk/scripts/ scripts
> # cd scripts
> # svn --username nobody cp scripts/MergeTracking-Demo scripts/new
> A scripts/new
> Authentication realm: <http://sharpsvn.open.collab.net:80> CollabNet
> Subversion Repository
> Password for 'nobody':
> (press enter a few times)
> <snip>
> svn: OPTIONS of
> 'http://sharpsvn.open.collab.net/svn/sharpsvn/trunk/scripts/MergeTracking-De
> mo': authorization failed (http://sharpsvn.open.collab.net)
>
> (svn returns with errorcode 1)
>
> The directory is copied, but an error is returned.
>
> And it is explicitly documented as:
> # 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>
>
>
> This breaks existing c implementations of the client api as they do not
> expect wc -> wc copy operations to require authorization (was always
> non-interactive) and don't ignore new errors.
>
>
> I tried to get some usefull information in the svn:mergeinfo property using
> the wc->wc copy in different scenarios (allowing repository access) but I
> always get an empty svn:mergeinfo property. (Don't know why it would contact
> the repository to get nothing; but perhaps that is an 1.4-1.5 interop issue)

Hi Bert,

This behavior is due to some old code from the svn move/copy -g days
that was never removed. It's gone now (r30020) and nominated for
backport to 1.5.x.

Paul

> Overall it makes copying/moving wc files quite a lot slower in 1.5 over 1.4
> on webdav repositories.
>
>
> Bert

---------------------------------------------------------------------
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-24 17:00: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.