Erik Huelsmann wrote:
> On 11/2/06, Thomas Harold <firstname.lastname@example.org> wrote:
>> Probably one of the more annoying errors that SVN gives. Basically, if
>> you start to update a large directory (or directory tree) and stop the
>> update somewhere in the middle, SVN now doesn't know what to do. Any
>> further attempts to "svn up" on the tree will fail with the "already
>> exists" error.
> Could you post a reproduction recipe? 'svn up' operations are supposed
> to be interuptable (and after that continuable).
This might be TortoiseSVN specific, but I'll see if I can reproduce it
with the Windows command-line client. It happens quite frequently with
TSVN over unreliable links when doing updates that take a few minutes
and you have to kill off the window because it seems to have hung.
Nope... managed to do it in command-line.
1) have a folder with 100+ files in it (the more the merrier, it can
happen with only a few files, it's just easier to test with 100+ files)
2) start an 'svn up' operation that is pulling down files
3) kill the "svn.exe" process in Task Manager (not Ctrl-Break or Ctrl-C,
which SVN handles gracefully, it has to be a hard kill)
4) try the 'svn up', SVN will (properly) complain about locks and tell
you to run "svn cleanup" (good so far).
5) run svn cleanup
6) try "svn up" again, svn will now complain:
svn: Failed to add file 'ex030626.log': object of the same name already
So there's 2 parts to the bug, or I don't know where the bug lies:
a) "svn up" is liable to leave the working copy in an unfixable state if
it dies unexpectedly
b) "svn cleanup" isn't doing its job of cleaning up the working folder
and matching things back up.
(And yes, I'm really really looking forward to v1.5 with the better
handling of existing files within working copies. That will allow us to
ship a DVD with a current snapshot of the working copy to far flung
users that they can then do a much quicker online update to get up to
speed. Or they can recover from working copy errors where they have the
files, but SVN has gotten confused.)
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Thu Nov 2 23:50:01 2006