You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tom Mortimer <tm...@apparentnetworks.com> on 2009/10/08 17:17:39 UTC

Problem with path length

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@apparentnetworks.com 
<mailto:tmortimer@apparentnetworks.com%20> www.apparentnetworks.com
<http://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

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2405194

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Problem with path length

Posted by David Weintraub <qa...@gmail.com>.
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
information.
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@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@apparentnetworks.com
>  <tmortimer@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
qazwart@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2406728

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].