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

RE: long path names on windows prefixed with \\?\ not handled by svn commands

From: Bert Huijben <bert_at_qqmail.nl>
Date: Tue, 11 May 2010 21:57:24 +0200

Subversion uses the APR library which handles the escaping for specific API
functions that allow this trick. The '\\?\' style paths are not a different
path, but just the original path escaped for a specific api.

(Some Windows APIs allow this trick, others just support long paths directly
and then there are functions that support neither. By passing the long path
yourself you assume that all filesystem functions have this long path
support)

 

If you pass absolute paths to svn, it should support long paths directly.
(Windows doesn't support long relative paths). Subversion 1.7 will probably
work better with long relative paths, as it will use absolute paths
internally for almost every operation.

 

                Bert

 

From: Heinz Prantner [mailto:heinz.prantner_at_opensynergy.com]
Sent: dinsdag 11 mei 2010 14:21
To: users_at_subversion.apache.org
Subject: long path names on windows prefixed with \\?\ not handled by svn
commands

 

Hello,

 

running svn client commands other than svn checkout on windows fail,

if the path name (of the local working copy location) is prefixed with \\?\.

The prefix is required for path names longer than 255 or so.

  

It seems that svn commands like svn info or svn status behave different

than svn checkout command regarding the path name prefix.

 

example:

 

svn info \\?\c:\long\path\name

svn: '\' is not a working copy

 

Any thoughts?

 

(I am using svn client version 1.6.11 from CollabNet)

 

Thanks,

Heinz

 

 

 
Received on 2010-05-11 21:58:25 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.