[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 in windows

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-10-28 17:00:15 CEST

Colin JN Breame <colin@breame.com> writes:

> Looks like absolute and unc paths have \\?\ and \\?\UNC appended.
> This function is called from all the correct places (apr_file_open,
> etc.)

Yep. APR is doing the right thing throughout, as far as my previous
research could show.

> I see two solutions to the problem:
>
> a) use absolute paths in subversion
> b) change the above code so that
> - relative paths that are longer than MAX_PATH are special cased
> - these paths are converted into absolute paths then have \\?\ prepended
>
> I would be willing to prepare a patch for (b). What do you think?

I think a guy that shows up with a patch is at least twice as loud as
those who don't (myself included). :-) I'm not fond of adding more
OS-specific code to Subversion, but if you can find a way to
minimalize the reaches of that, it could be worth it.

Also, (b) is likely the less hurtful solution. On Windows systems <
Win2k, switching to absolute paths all over would probably just
exacerbate the problem of long paths, since those system have a
255-ish limit on *all* path, relative or absolute.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 28 17:02:55 2004

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

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