Looking for out-of-place directories in an SVN working copy?

Posted by jthg on Stack Overflow See other posts from Stack Overflow or by jthg
Published on 2010-04-26T21:59:24Z Indexed on 2010/04/26 22:03 UTC
Read the original article Hit count: 179

Filed under:

An annoyance that I sometimes come across with SVN is the working copy getting corrupted by one of the .svn folders getting moved from its original location. It doesn't happen often if you're careful and use the proper tools for all moves and renames, but it still somehow happens from time to time.

First, does anyone know if there's a good way to catch the problem before a commit is even done? Cruise control usually catches the problem, but there are plenty of cases it wouldn't catch.

Second, is there a quick and easy way to check for out-of-place .svn folder if I suspect that there is one? I can definitely do it manually by deducing what directory is out of place based on the compiler errors or by diffing the working copy with another clean checkout. But, this seems like a problem that SVN can diagnose in a second by giving me a list of all directories whose parent directory in the working copy doesn't match its parent directory in the repository. There there some way to have SVN give me a list like that?

Thanks.

© Stack Overflow or respective owner

Related posts about svn