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

Re: updating in moved directory

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-07-01 21:04:26 CEST

On Wed, 2004-06-30 at 21:07, Roger Keays wrote:
> Hi all,
> I'm having difficulty understanding how I can bring a directory up to date in a
> working version when the repository version of the directory has been moved.
> What I have done is moved the directory in the repository from /2.0.0 to
> /branches/2.0.0. Now when I try to update from the working repository I get
> svn: No repository found in
> 'svn+ssh://host.name.com/website/2.0.0/www/'
> Can anybody explain what is happening here for me? I can't svn switch the
> working repository.

As your detailed example shows, 'svn switch' is the solution.

If you have a working copy of directory A, and then somebody else moves
A to B, they've essentially deleted A in the HEAD revision, and created
a new directory "B" which is a copy of A.

Then, when you run 'svn up' your working copy of A, you're asking the
server, "update me to reflect the A directory in the HEAD revision", to
which the server responds, "there is no A directory in the HEAD

The answer is to cd into your working copy and run 'svn switch B'.

So, what exactly is the problem here? You say you "can't svn switch",
but don't show us any details. 'svn switch
svn+ssh://host/website/branches/2.0.0' should work just fine.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 1 21:09:28 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.