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

Re: AW: TortoiseSVN truncates URL shown in repo browser to 259 characters

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 06 Feb 2012 18:47:37 +0100

On 06.02.2012 16:48, Markus Schaber wrote:
> Hi, Stefan,
>
>>> [Long Urls are truncated in the repository explorer)
>> That's a limitation of the list control. Nothing we can do about
>> it.
>
>> And btw: you won't be able to check out such a path on Windows
>> anyway. While NTFS can handle *paths* that are longer than MAX_PATH
>> (260 chars), each path *component* (part between backslashes of a
>> path) must not exceed the limit specified in
>> lpMaximumComponentLength returned by the GetVolumeInformation API,
>> and that limit is usually only 255 chars.
>
> That's not exactly true: The URL is truncated when its length is
> longer than MAX_PATH, even when none of its components is longer than
> 255 chars.

That's true for the windows explorer, not for TSVN per se.

>
> It is true that checking out such a directory gives me an error with
> TortoiseSVN:
>
> Command: Checkout from
> svn://localhost/testrepo/LongPathProject/Device/Plc
> Logic/Application/1_abcdefghijklmnopqrstuvwxyz/2_ABCDEFGHIJKLMNOPQRSTUVWXYZ/3_abcdefghijklmnopqrstuvwxyz/4_ABCDEFGHIJKLMNOPQRSTUVWXYZ/5_abcdefghijklmnopqrstuvwxyz/6_ABCDEFGHIJKLMNOPQRSTUVWXYZ
>
>
Error: URL
> Error:
> 'svn://localhost/testrepo/LongPathProject/Device/Plc%20Logic/Application/1_abcdefghijklmnopqrstuvwxyz/2_ABCDEFGHIJKLMNOPQRSTUVWXYZ/3_abcdefghijklmnopqrstuvwxyz/4_ABCDEFGHIJKLMNOPQRSTUVWXYZ/5_abcdefghijklmnopqrstuvwxyz/6_ABCDEFGHIJKLMNOPQRSTUVWXYZ/7_abcdefg
>
>
Error: doesn't exist
> Completed!:
>
> Note that the URLs given in the checkout error message are both
> truncated, the Url I actually selected for checkout in the repo
> browser was 'svn://localhost/testrepo/LongPathProject/Device/Plc
> Logic/Application/1_abcdefghijklmnopqrstuvwxyz/2_ABCDEFGHIJKLMNOPQRSTUVWXYZ/3_abcdefghijklmnopqrstuvwxyz/4_ABCDEFGHIJKLMNOPQRSTUVWXYZ/5_abcdefghijklmnopqrstuvwxyz/6_ABCDEFGHIJKLMNOPQRSTUVWXYZ/7_abcdefghijklmnopqrstuvwxyz/8_ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

Yes, urls and paths in error messages are truncated. Because the list
control wouldn't show the error message correctly if they weren't
(because of the before mentioned limitation). But internally, the
strings, paths and urls are *not* truncated in TSVN. Only for UI output
they are.

>
> However, on the command line or using SharpSVN, I can checkout
> aforementioned URL fine.

I seriously doubt that, unless you're trying that on a non-windows OS.
Because those clients have the same limitations that the windows API has.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2918642
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-02-06 18:47:50 CET

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

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