[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: Fri, 18 Jan 2008 16:41:52 +0100

Benjamin Bentmann wrote:
> Stefan Küng <tortoisesvn <at> gmail.com> writes:
>
>> Are you sure that's the reason why it doesn't work?
>> http://subversion.tigris.org/faq.html#long-paths
>> (TSVN is mentioned there explicitely, indicating that this works)
>>
>> What error message do you get when you try checking out?
>
> Well, judge by yourself. If a do checkout of r613166 from
> https://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder
> into say
> G:\maven\maven-embedder
> it works. If I checkout the same repo into a slightly longer root directory like
> G:\maven-trunk\maven-embedder
> the checkout dialog of TortoiseSVN aborts with the following error lines:
> Error> Can't create directory
> Error> 'G:\maven-trunk\maven-embedder\src\test\error-reporting-projects
> \testReportExtensionPluginArtifactNotFound\local-repo
> \org\apache\maven\errortest
> \testReportExtensionPluginArtifactNotFound-maven-plugin
> \1\.svn\tmp\text-base':
> The filename or extension is too long.
>
> Maybe there is some code line in TortoiseSVN that does not use absolute paths
> when dealing with the file system?

TSVN can't handle relative paths, it simply wouldn't work. That's
because the "working directory" of TortoiseProc changes almost randomly
since it is started by the explorer process.
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:
in the checkout dialog, where the checkout path is shown, prepend "\\?\"
on that path (e.g. instead of G:\maven use \\?\G:\maven). With that, the
checkout succeeds with a nightly build of TSVN (haven't tested with the
1.4.7 release though, but I guess it should work there too).

But that's just the checkout. Update, merge, ... commands will still
suffer from the same problem. Not sure if I can do something about that.

Stefan

-- 
        ___
   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-18 16:42:10 CET

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