<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr">On Feb 28, 2019, at 8:00 AM, Pulkit Goyal <<a href="mailto:7895pulkit@gmail.com">7895pulkit@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 10, 2017 at 5:39 AM Matt Harbison <<a href="mailto:mharbison72@gmail.com">mharbison72@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 09 Oct 2017 05:38:04 -0400, Kostia Balytskyi <<a href="mailto:ikostia@fb.com" target="_blank">ikostia@fb.com</a>>  <br>
wrote:<br>
<br>
> # HG changeset patch<br>
> # User Kostia Balytskyi <<a href="mailto:ikostia@fb.com" target="_blank">ikostia@fb.com</a>><br>
> # Date 1507541423 25200<br>
> #      Mon Oct 09 02:30:23 2017 -0700<br>
> # Node ID aa5c7de6a86ba8bbc7d46bb414ac7ee6fbde3a4a<br>
> # Parent  a57c938e7ac8f391a62de6c7c4d5cf0e81b2dcf4<br>
> windows: add an experimental option for long paths support<br>
><br>
> +<br>
> +    def addlongpathsmanifest(self):<br>
> +        """Add manifest pieces so that hg.exe understands long paths<br>
> +<br>
> +        This is an EXPERIMENTAL feature, use with care.<br>
> +        To enable long paths support, one needs to do two things:<br>
> +        - build Mercurial with --long-paths-support option<br>
> +        - change HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\<br>
> +                 LongPathsEnabled to have value 1.<br>
<br>
The way I read the documentation[1], it seems like either one alone is  <br>
sufficient.  Did you find different in testing?<br>
<br>
[1] <a href="https://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#maxpath" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#maxpath</a></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I stumbled upon the same thing today. Then I read the 9th comment on <a href="https://social.msdn.microsoft.com/Forums/en-US/fc85630e-5684-4df6-ad2f-5a128de3deef/260-character-explorer-path-length-limit?forum=windowsgeneraldevelopmentissues">https://social.msdn.microsoft.com/Forums/en-US/fc85630e-5684-4df6-ad2f-5a128de3deef/260-character-explorer-path-length-limit?forum=windowsgeneraldevelopmentissues</a> which says you need to have the support enabled and also add the manifest to hg.exe.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Matt any chance you checked whether we need the manifest or just enabling the long path support on windows will work.<br></div></div></div></div>
</div></blockquote><br><div>I played with it a little bit this morning.  I didn’t enable the policy setting, but it looks like the manifest entry alone doesn’t work.  I used py3 to test (which does have the manifest entry).</div><div><br></div><div>I’m not sure if they did anything to support it in py3, but the entry is missing from py2.</div><div><br></div><div>Given that is doesn’t work with the manifest alone, I wonder if we should just add it to the manifest unconditionally. (It’s behind an extra build argument right now.)</div></body></html>