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

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

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 4 Feb 2012 14:58:44 +0100

On Sat, Feb 4, 2012 at 14:52, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> On 04.02.2012 01:03, Jeff Lyon wrote:
>> I created a file with a really long file name and committed it to a
>> subversion repository (the SVN URL is 274 characters long). I expected the
>> full URL to be listed in the TortoiseSVN repo browser when clicking on this
>> filename. However, the resulting URL listed in the repo browser window is
>> truncated to 259 characters. I changed the filename to various lengths and
>> any URL length greater than 259 characters gets truncated.
>> Below is the example I tried:
>> Actual SVN URL (274 characters long):
>> http://azgeng01:8080/svn/sandbox/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> URL listed in TortoiseSVN repo browser URL window (incorrect, only 259
>> characters long):
>> http://azgeng01:8080/svn/sandbox/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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.
See here for those limitations:

So I think this isn't really an issue, or it's only an issue if you
want to find one.


  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-02-04 14:59:14 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.