[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problem with path length

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 12 Oct 2009 12:33:20 -0400

This could be related to the MAX_PATH length of 260 characters. Windows NTFS
allows for file names as long as 32K, but the Windows libraries themselves
don't allow a maximum file name/path longer than 260 characters. See <
http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx> for more
There is a way to get around it by using the //?/ prefix in a library call,
and Tortoise might be using this. However, the Windows Console certainly
doesn't use this shortcut, so once you start referring to file and
directories that are more than 260 characters, you'll run into this issue.

What you can do is move your HUDSON root to be in the root of the disk drive
instead of under %USERPROFILE%. This can save you about 45 to 50 characters.
If that doesn't help, move your jobs' working directories under the root
drive instead of the default which is
$HUDSON_HOME/.hudson/jobs/<jobName>/workspace. This is especially true if
you define your workspace under a sub-directory. For example, in mine, the
ETLF-1.2 workspace is
/usbdata/hudson/.hudson/jobs/ETLF-1.2/workspace/etlf-1.2 which takes up 55
characters. That's almost 25% of the 260 character allotment. Long file and
subdirectory names (and a lot of sub-directory nesting) could easily put you
over that 260 character limit.

The other choice is to move your server to a Unix server which doesn't have
that limit. Of course, that doesn't help if you are using a Microsoft based
technology such as VisualStudio.

On Thu, Oct 8, 2009 at 1:17 PM, Tom Mortimer <tmortimer_at_apparentnetworks.com
> wrote:

> I appear to be running into the problem described here:
> http://www.nabble.com/Your-.svn-tmp-directory-may-be-missing-or-corrupt--run-%27svn-cleanup%27-and-try-again-td20604126.html.
> I find this only with the svn command line client, tried the latest still
> the same issue. No issue with tortoise. However we use the command line
> client for our ant build system.
> I just want to find out what the actual limit is here, ie number of
> characters or however it is defined, so that I can avoid this problem in the
> future.
> Thanks,
> -Tom
> Thomas Mortimer
> Software Developer
> *Apparent Networks *
> tmortimer_at_apparentnetworks.com
> <tmortimer_at_apparentnetworks.com%20>www.apparentnetworks.com
> *Tel: 604.433.2333 ext 132**
> **Cel: 778.772.6957 *
> 400 - 321 Water Street
> Vancouver, BC V6B 1B8
> Tel.1.800.508.5233 Fax. 604.433.2311

David Weintraub
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-12 18:34:25 CEST

This is an archived mail posted to the Subversion Users mailing list.