> +    # Create a matcher so that prefetch doesn't attempt to fetch the entire
> +    # repository pointlessly.
> +    match = scmutil.matchfiles(repo, repo[node].files())
>      with shelvedfile(repo, name, patchextension).opener('wb') as fp:
> -        cmdutil.exportfile(repo, [node], fp, opts=mdiff.diffopts(git=True))
> +        cmdutil.exportfile(repo, [node], fp, opts=mdiff.diffopts(git=True),
> +                           match=match)

Seems fine as the temporary commit shouldn't be a merge, so the .files()
should include all changes.

Queued, thanks.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to