I cannot create working copy from command line using svn utility if resulting full file names for some files are too long.
But I can successfully create working copy from TortoiseSVN or from Subclipse.
Why?
Instead of doing the following in your current directory:
svn co http://xxx/repo1
Give it the full target path like this:
svn co http://xxx/repo1 E:\abc\pqr\xyz\abc\pqr\xyz\repo1
This isn't really a limitation of the svn client but of the windows console: relative paths can't exceed MAX_PATH (254) chars when expanded.
And unlike some commenter here claims, it is not an oversight of the svn developers to forget about MAX_PATH. Because: if you pass full paths instead of relative ones, the commands will work.
So, instead of
cd C:\some\...\very\long\path
svn up .
run
svn up c:\some\...\very\long\path
and it should work just fine.
As a workaround, you can subst
your working copy to a drive letter to keep down the path length:
C:\Users\Me\SVN\My\Cool\Repository\With\A\Very\Long\Path> subst S: .
C:\Users\Me\SVN\My\Cool\Repository\With\A\Very\Long\Path> S:
S:> svn up
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With