mickthompson
mickthompson

Reputation: 5512

SVN - can't check out a file previously deleted and then restored in the repo

There're files/folders that were deleted and then re-added to the repository.

svn update > gives me the right-updated revision. files and folders are correctly displayed in the svn repository, if I run 'svn update' 'svn diff' my workspace folder seems in sync but the files/folders are not checked out... any idea of what the problem is?

If I check out the project from scratch once again the files/folders are checked out correctly

Upvotes: 3

Views: 1833

Answers (3)

Will Wu
Will Wu

Reputation: 631

Try to cleanup the folder

Remember to check "Revert All Changes Recursively"

If you are using TortoiseSVN, you can try to use Clean up feature in context menu.

Upvotes: 0

Andre Miller
Andre Miller

Reputation: 15493

You might be running into the following problem

From the article:

With an 1.6.1 client, there's a situation where new files aren't fetched in an update.

This happens when adding a new folder with --depth=empty, which is what TSVN uses to avoid that files which the user doesn't want to add get added automatically too. See the comments in the script.

The solution (thanks wcoenen):

svn update --set-depth infinity

Upvotes: 3

Carlos Tasada
Carlos Tasada

Reputation: 4444

I would try to do a clean 'svn checkout'. Sometimes the local information is not properly in sync in causes this kind of effects.

Upvotes: 0

Related Questions