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

Recipe to reproduce "svn: Working copy path '...' does not exist in repository." problem

From: Peter McCurdy <peter.mccurdy_at_gmail.com>
Date: 2006-03-17 00:12:23 CET

I recently ran into a problem where, when doing a merge, I got my working
copy into a state where it couldn't commit, and doing "svn up" said "svn:
Working copy path '...' does not exist in repository." Doing a bit of
research, I found a link to a bug report on this list from last November [1]
where no recipe was found for how to reproduce the problem.

Fortunately, I was able to recreate how the problem occurred for us with a
relatively simple recipe using Subversion 1.2.1 on Linux. It could maybe be
simplified a little bit, but this is as small as I've been able to get it,
and is a pretty good reproduction of what actually happened to us:

~$ svnadmin create /tmp/svn
~$ svn co file:///tmp/svn wc
Checked out revision 0.
~$ svn mkdir wc/trunk wc/branch1
A wc/trunk
A wc/branch1
~$ touch wc/trunk/foo wc/branch1/foo
~$ svn add wc/trunk/foo wc/branch1/foo
A wc/trunk/foo
A wc/branch1/foo
~$ svn ci -m "Initial checkin" wc
Adding wc/branch1
Adding wc/branch1/foo
Adding wc/trunk
Adding wc/trunk/foo
Transmitting file data ..
Committed revision 1.
~$ svn mv wc/trunk/foo wc/trunk/bar
A wc/trunk/bar
D wc/trunk/foo
~$ echo "new file" > wc/trunk/foo
~$ svn add wc/trunk/foo
A wc/trunk/foo
~$ svn ci -m "Here comes trouble" wc
Adding wc/trunk/bar
Replacing wc/trunk/foo
Transmitting file data .
Committed revision 2.
~$ svn merge file:///tmp/svn/trunk -r1:2 wc/branch1
D wc/branch1/foo
A wc/branch1/foo
A wc/branch1/bar
~$ svn up wc
svn: Working copy path 'branch1/foo' does not exist in repository
~$

At this point, the only way I found to repair my working copy was to delete
the directory containing the problematic file, check it out again, "svn mv"
the offending file out of the way and check that in, then re-do my merge.

I hope this helps. If this issue has been found in the meantime, at least I
can help other people find it via Google :)

1: http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=109132
Received on Fri Mar 17 00:13:01 2006

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.