You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alex Postnikov <pa...@comindwork.com> on 2008/07/24 10:23:37 UTC

Windows filename length limit

Hi everyone!

It seems like I'm running into trouble with Windows limit on 'file path'
length. 
(Someone here already said it's limited to 250 chars)

I have a SVN storage and try to update using Command Line SVN client. 

Has anyone invented any workaround for this problem? 


svn: Your .svn/tmp directory may be missing or corrupt; run 'svn cleanup'
and 
try again 
svn: Can't open file 'SLAVYANSKIY\@___________ ___\____________\________ _
_____
_____\___ _____\1_ _______\Satisfaction (Feldman and Bank Slavyansky v.
Ukraine)
\_______ Satisfaction\.svn\tmp\text-base\__________ ______.pdf.svn-base': 
The system cannot find the path specified.

(I'm using Subversion command-line client, version 1.4.6.)

Thanks!
Alex Postnikov


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Windows filename length limit

Posted by Erik Huelsmann <eh...@gmail.com>.
On Fri, Jul 25, 2008 at 2:19 AM, Keith Moore <Ke...@securency.com> wrote:
> I believe the Windows limit applies to API path parameters.  If you CD to the directory that you want to commit and run the command from there it should work.
>
> Something like:-
> CD really\long\path
> svn commit . -m "Some message"
>
> I've ran into this problem before, I think the MAX_PATH system constant is 260 for a file name and 248 for a directory.

That's true, except that the APR library on which Subversion is based
is able to work around that limitation if you use absolute paths, ie

 C:\Really\Long\Path> svn ci -m "" C:\Really\Long\Path

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Windows filename length limit

Posted by Keith Moore <Ke...@securency.com>.
I believe the Windows limit applies to API path parameters.  If you CD to the directory that you want to commit and run the command from there it should work.

Something like:-
CD really\long\path
svn commit . -m "Some message"

I've ran into this problem before, I think the MAX_PATH system constant is 260 for a file name and 248 for a directory.
_________________________________________________________________
Keith Moore

-----Original Message-----
From: Alex Postnikov [mailto:pas@comindwork.com]
Sent: Thursday, 24 July 2008 20:24
To: users@subversion.tigris.org
Subject: Windows filename length limit

Hi everyone!

It seems like I'm running into trouble with Windows limit on 'file path'
length.
(Someone here already said it's limited to 250 chars)

I have a SVN storage and try to update using Command Line SVN client.

Has anyone invented any workaround for this problem?


svn: Your .svn/tmp directory may be missing or corrupt; run 'svn cleanup'
and
try again
svn: Can't open file 'SLAVYANSKIY\@___________ ___\____________\________ _
_____
_____\___ _____\1_ _______\Satisfaction (Feldman and Bank Slavyansky v.
Ukraine)
\_______ Satisfaction\.svn\tmp\text-base\__________ ______.pdf.svn-base':
The system cannot find the path specified.

(I'm using Subversion command-line client, version 1.4.6.)

Thanks!
Alex Postnikov


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org