Locally deleting a file followed by svn update restores the local copy of that file. However this does not seem to apply to folders. Is there any way to make it work for folders as well?
EDIT: This is what the console output looks like:
C:\svn\Google Project Hosting\xulwin\xulrunnersamples>rmdir /S /Q treeview C:\svn\Google Project Hosting\xulwin\xulrunnersamples>svn up D treeview Updated to revision 50.
EDIT2: I have used svn for over two years now and I never had this error before. But I didn't change any settings. The only thing I can think of was that I created a Local Repository with Tortoise SVN today on my external hard drive to back up some unrelated old stuff. But that should not be the cause of the problem because the behavior occurs both on the local copy from this local repository and my code from Google Project Hosting.
EDIT3: WTF I suddenly can't reproduce the bug anymore. It all works as it should now. But I didn't change anything.
EDIT4: In EDIT1 the file seems to be marked as deleted, but it isn't since the svn commit command did nothing. Neither did Tortoise Check for modifications list anything.
Note: When the problem still occurred, a fully recursive update did restore the folder.
I ran into this problem today with svn 1.5.6. svn up --force the_dir_path
fixed it for me.
To recreate:
$ svn up Updated to revision X. $ rm -rf the_dir_path $ svn up D the_dir_path Updated to revision X. $ svn up Updated to revision X. $ svn up --force the_dir_path A .... A .... Updated to revision X.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With