May 7, 2008

svn checkout with long paths

Using svn windows binary to check out files with a long path causes an error i.e. using the command svn co https://mysvnrepo.com/mycode pathToCheckout/dir to check out some code gives

A pathToCheckout\dir\pathOne\src\main\resources\local\testdata\
getDataMocksvn: Your .svn/tmp directory may be missing or corrupt; run ‘svn cleanup’ and try againsvn: Can’t open file ’ pathToCheckout\dir\pathOne\src\main\resources\local\testdata\

getDataMock.svn\tmp\text-base\
659bfeaa28e29110VgnVCM1000001f5012ac____
-f13bfeaa28e29110VgnVCM1000001f5012ac____.xml.svn-base’: The system cannot find the path specified.


If you use

svn co https://mysnvnrepo.com/mycode c:/pathToCheckout/dir

in other words use the full path to the directory you want to check out into you should get round this problem.