Update fails with long file name
Scott Palmer
swpalmer at gmail.com
Tue Sep 29 01:07:14 UTC 2015
> On Sep 28, 2015, at 6:49 PM, Sean Farley <sean at farley.io> wrote:
>
>
> Benjamin Fritz <fritzophrenic at gmail.com> writes:
>
>>> On Mon, Sep 28, 2015 at 5:24 PM, Matt Mackall <mpm at selenic.com> wrote:
>>>
>>>> On Mon, 2015-09-28 at 16:18 -0500, Benjamin Fritz wrote:
>>>> I'm not sure whether the problem is in Mercurial, or in hgsubversion, so
>>>> please let me know if this is a bad place to report the issue.
>>>>
>>>> I cloned a SVN repository by creating a new (empty) hg repository, then
>>>> enabling the hgsubversion extension, and doing "hg pull" with the URL
>> of my
>>>> SVN repository.
>>>>
>>>> I used TortoiseSVN for all of the above, so I don't have the exact
>> command
>>>> line.
>>>>
>>>> The pull worked fine but the update step failed as follows:
>> E:\Project_Files\XXX-hg\Verification/XXX_config/Error_Config/XXXXXXXXX/XXXXXXXXXXXXXXXXXX0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678.csv
>>>
>>> Programs that use the standard C interfaces have this limitation in
>>> Windows (including cmd.exe and friends). Mercurial intentionally remains
>>> in this set so that it doesn't create problematic files that not all
>>> programs (such as del!) can handle.
>>>
>>> We'll fix this after Windows itself (including its core utilities)
>>> finally gets its act together.
>>
>> I'll take that as a "won't fix" then. Pity. I guess I'm stuck without
>> Mercurial on yet another project :-(
>>
>> Unless of course there is some magical workaround, maybe in hgsubversion or
>> some other extension.
>
> Maybe there could be a filemap in hgsubversion? A hack but might work.
You could rename the Project_Files folder to PF to buy a few extra characters.
I doubt any tricks like using --repo \\?\E:\Project_Files would work, but I have never tried it. (Of course you lose the automatic slash conversion for tweaking sane forward slashes into the Window bastardized backslash convention. I’m not sure if Mercurial/Python handles slash conversion internally or relies on the Windows APIs to handle it.)
(See https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx for details on how Microsoft screwed all this up.)
Scott
More information about the Mercurial
mailing list