Reputation: 26792
I just managed to get into a weird situation with svn. One of my files seems 'lost' as far as the working copy is concerned. When I look on the server or do a fresh checkout of the containing folder in another location, the file is there, but in this one specific working copy it seems 'lost in space'.
svn status reports no changes (so not even a missing file)
svn update does nothing
I even tried re-exporting the file to my working copy, to no effect.
I would like to avoid having to resort to a fresh checkout of the whole working copy, if possible.
Upvotes: 7
Views: 7374
Reputation: 66783
SVN 1.6.1 clients (including TortoiseSVN) had a bug where folders would sometimes erroneously be set to depth "empty". This causes the symptoms you describe. (Note that it's possible that the folder was made "empty" by svn 1.6.1 and has remained that way even though you've already upgraded to a newer svn client in the mean time.)
To fix it, use the "update to revision" menu item in TortoiseSVN and select the depth "fully recursive".
Upvotes: 10
Reputation: 1762
I had this bug too. The problem certainly resides in the .svn directory of the file concerned. Try to replace this .svn directory with the corresponding one of a fresh (partial) checkout.
Upvotes: 2
Reputation: 10468
You should:
svn update --revision HEAD --depth infinity
svn cleanup
and try againUpvotes: 4
Reputation: 53994
First, check that subversion has the same idea of what's in your working copy that you do, with svn info
in the directory where the file should be. Is the URL the correct branch?
Next, check what uncommitted changes you have going on with svn update
. Perhaps something has deleted that file? If so, simply revert the delete: svn revert <file>
.
Next (after ensuring you have saved copies of anything you have changed in this directory), you can simply nuke the entire directory and refetch it: cd ..; rm -rf dir; svn update dir
. That should re-create the directory, with your file in it.
Upvotes: 2
Reputation: 8096
Try deleting that particular file from your local checkout only, and then do an update again.
Upvotes: -1