[issue2657] Error "The filename or extension is too long" is raised while update

Aaron Cohen aaron at assonance.org
Thu Feb 24 10:04:12 CST 2011


On Thu, Feb 24, 2011 at 8:21 AM, Anton <bugs at mercurial.selenic.com> wrote:
>
> New submission from Anton <restuta8 at gmail.com>:
>
> I am using Windows 7, 64 bit.
>
> I am trying to perform "hg.exe update -C default" command on my repository,
> but path to some files in my repository violates Windows default path limit
> of 260 symbols. So this command fails with "The filename or extension is too
> long".
>
> I have made some research and figured out that this is the problems for all
> programs that is using old WinAPI functions (even windows explorer was using
> them until Windows 7).
>
> Some explanations can be found here:
> http://superuser.com/questions/37737/extend-maximum-file-path-size-in-windows-7
> or here
> http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx#maxpath
>
> Any plans to get this fixed?
>

I've created an extension which attempts to address this. Please take
a look at: http://mercurial.selenic.com/wiki/Win32LongFileNamesExtension
and let me know how it works for you.

Thanks,
Aaron


More information about the Mercurial-devel mailing list