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

Obstructed update when WC to WC copy after URL to URL copy

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2003-07-09 23:13:39 CEST

Hi !

I searched the issues database with summary "obstructed update", but
found nothing.

I think I might have found a "bug". Let's say I do a WC to WC copy of a
folder. In the mean time, someone did the same thing, but using the URL
to URL copy. When I next update my WC, I would have expected SVN to see
that my local WC modification is the same as what occured in the
repository. Shouldn't the WC manager have seen that and just updated the
folder, removing the A attribute ? At the moment, SVN reports an
obstructed update. Here's a repro recipe:
svnadmin create repo
svn co file:///repo wc-harry
svn co file:///repo wc-sally
cd wc-sally
mkdir tau
echo "file content" >tau\file
svn add tau
svn commit -m "Adding tau"
cd ..\wc-harry
svn up
svn cp tau tau1
cd ..\wc-sally
svn cp file:///repo/tau file:///repo/tau1 -m "Tagging tau as tau1"
svn up
cd ..\wc-harry
svn up

Here's what it looks like on my Win2K SP3 machine, using ra_local:

E:\>svn --version
svn, version 0.24.2 (r6284)

E:\>svnadmin create repo

E:\>svn co file:///repo wc-harry
Checked out revision 0.

E:\>svn co file:///repo wc-sally
Checked out revision 0.

E:\>cd wc-sally

E:\wc-sally>mkdir tau

E:\wc-sally>echo "file content" 1>tau\file

E:\wc-sally>svn add tau
A tau
A tau\file

E:\wc-sally>svn commit -m "Adding tau"
Adding tau
Adding tau\file
Transmitting file data .
Committed revision 1.

E:\wc-sally>cd ..\wc-harry

E:\wc-harry>svn up
A tau
A tau\file
Updated to revision 1.

E:\wc-harry>svn cp tau tau1
A tau1

E:\wc-harry>cd ..\wc-sally

E:\wc-sally>svn cp file:///repo/tau file:///repo/tau1 -m "Tagging tau as

Committed revision 2.

E:\wc-sally>svn up
A tau1
A tau1\file
Updated to revision 2.

E:\wc-sally>cd ..\wc-harry

E:\wc-harry>svn up
svn: Obstructed update
svn: failed to add directory 'tau1': object of the same name already

I have not tried with other RA access methods, since I believe this to be
a client-side only issue.

Bye !

  Francois Beausoleil
  Developer of Java Gui Builder
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 9 23:14: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.