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

Re: Problems with the the length of names and Windows

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 19 Jan 2008 16:03:59 +0100

Benjamin Bentmann wrote:
> Stefan Küng <tortoisesvn <at> gmail.com> writes:
>> That means, TSVN *always* uses absolute paths.
>> The problem here is that even absolute paths can't exceed 260 chars. But
>> there's a little trick you could use:
> But then I do not get the point of the previously mentioned FAQ. It says:
>> Fortunately, the Apache Portable Runtime (APR) library that Subversion uses
> transparently converts absolute paths (like C:\WorkingCopy\file.txt) into the
> form required by the Windows APIs (\\?\C:\WorkingCopy\file.txt), and back again.
> The trick you mean should happen "transparently". Why doesn't it? If not the
> TortoiseSVN GUI, it seems some of the libraries underneath got broken.

Ok, I found the problem/bug:
While apr really does transparently convert long paths to the long
format, it fails to do so properly for directory names
(CreateDirectory() requires the long format for paths > 248 chars, while
all others require this only for paths > 260 chars - and apr only does
this for paths > 260 chars).

I've sent a patch to the apr dev list. But this may take a while until
it gets committed and apr has a new release...


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-01-19 16:04:18 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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