Subversion Feature/Issue and Fix for Long Directory Names

1 message Options
Embed this post
Permalink
rivercode

Subversion Feature/Issue and Fix for Long Directory Names

Reply Threaded More More options
Print post
Permalink
Your instructions are using relative directory naming with Subversion, eg.

svn co http://code.marketcetera.org/root/tags/0.5.0 marketcetera-platform

The problem with this is that on a Windows platform, the Windows API limits total length of directory name to 260 char.  This can lead to the following error when using Subversion on windows:

svn: Your .svn/tmp directory may be missing or corrupt; run 'svn cleanup' and tr
y again
svn: Can't open file 'marketcetera-platform\source\photon\plugins\org.marketcete
ra.photon.notification\src\main\java\org\marketcetera\photon\notification\prefer
ences\.svn\tmp\text-base\DesktopNotificationPreferencesPage.java.svn-base': The
system cannot find the path specified.

There is not anything wrong with Subversion or the repository, the problem is that the path has been cut to 260 char and hence it cannot be found.

The solution is to use absolute naming, which does not have the 260 char limit, eg.

svn co http://code.marketcetera.org/root/tags/0.5.0 C:\dir\sub-dir\yet_another_dir\etc_dir\marketcetera-platform

For more info, goto
http://subversion.tigris.org/faq.html#long-paths
http://msdn.microsoft.com/en-us/library/aa365247.aspx#maximum_path_length

Any Qs ?