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

Possible issue triggered by repos reorg (including repro script)

From: Matt Doran <matt.doran_at_papercut.biz>
Date: 2005-04-16 12:00:36 CEST

Hi there

I'm a regular reader of the dev list and previously reported the char
conversion perf issue prior to 1.1 (which lundblad and ghudson ended up
resolving... thanks). Since then we've been using subversion, and it's
been great.

Recently I did some reorganisation of our repos, renaming a project and
setting up the trunk/branches/tags structure. Our original structure
was simply ...

/projects/p1

I then moved the "p1" folder so that it was the "trunk" folder, and
change the project folder name as shown below:

/projects/n1/trunk

After doing that, all working copies that pointed to the original
project were then relocated with "switch --relocate" .... but they could
no longer be updated. Instead, running an "svn up" returned the
rather vague error:

    svn: Cannot replace a directory from within

After trying a few things I gave up and just created a new working
copy. It was pretty annoying, and the same thing happened to all other
devs working on the project. I'd been meaning to report this for a
while ... but only just had the time to develop the repro script
(attached).

We're using SVN 1.1.3 (server on Debian) over https. The clients are
also 1.1.3 (TSVN on win). The repro script uses file:// and svn on
linux, but we encountered the problem over http using TSVN ... so the ra
layer nor TSVN doesn't seem to be the problem.

Two issues (#1532, #2047) mention this error .... but neither seem to
relate this issue.

Thanks,

Matt Doran
PaperCut Software Pty. Ltd.
Web: http://www.papercut.biz

#!/bin/sh

# Create repro repos
svnadmin create repos

export R=file://`pwd`/repos

# create a working copy
svn co $R wc1

# setup the project structure
cd wc1
mkdir proj
mkdir proj/p1
cat "hello, world!" > proj/p1/file.txt
svn add proj
svn ci -m "initial"
cd ..

#checkout p1 to a second wc
svn co $R/proj/p1 wc2

# now reorganise the repos
cd wc1
mkdir proj/r1
svn add proj/r1
svn mv proj/p1 proj/r1/trunk
svn ci -m "reorg"

cd ..

# Now relocate the 2nd wc
cd wc2

svn switch --relocate $R/proj/p1 $R/proj/n1/trunk

# Now try to update .... but this errors
svn up

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 16 12:01:27 2005

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.