We recently had an issue where TortoiseSVN or AnkhSVN (I can’t determine which) crashed in the middle of switching a SVN working copy. Our developer didn’t realise that the switch was incomplete, and everything was fine until it came to merging the branch back to trunk, where we learned that some of the changes had already been committed to trunk, and some of the changes had been committed to the branch.
Fortunately, this did not actually affect anything, but I am concerned that this may happen again in the future, and I need a speedy way to test which repository that subdirectories in a working copy point to. Now, in Linux, I could hack a shell script together very quickly to determine this, but I currently don’t know how I might find this out in Windows.
I am not entirely against hacking something together using SharpSVN if I have to (and rest assured that I’ll share it if I do), but I’d like to know if I can save some time by getting some built in TortoiseSVN or AnkhSVN feature to do it for me.
If you can use Powershell use something like below:
For every folder in your working copy, it will display the path and the url from your repo. If some folder is switched to a branch, you can see that url and the path.
You can easily tweak it to print only the path and urls that are outside of your current branch ( or trunk )
Ignoring unversioned folders is easy:
So the entire thing would be:
You need to have a command line svn client like SlikSVN or CollabnetSVN and on path.