[PATCH] largefiles: ensure destination's parent directory exists before linking there

Greg Ward greg-hg at gerg.ca
Mon Oct 24 19:12:19 CDT 2011


On Mon, Oct 24, 2011 at 12:11 PM, Hao Lian <hao at fogcreek.com> wrote:
> # HG changeset patch
> # User Hao Lian <hao at fogcreek.com>
> # Date 1319471601 14400
> # Branch stable
> # Node ID be701d4a2bf507f3acac979252933ba8dc1f24f9
> # Parent  8b8dd13295dbd733cc03ebb3c2af2f33d24d5428
> largefiles: ensure destination's parent directory exists before linking there
>
> When findfile links a largefile from the user cache to the store for the first
> time, it errors out because the store path's parent directory doesn't exist yet.
> This patch fixes it by imbuing the link helper function with the ability to
> autovivify the destination's path.

Can you modify test-largefiles.t to 1) demonstrate the problem and 2)
ensure that this stays fixed?

Greg


More information about the Mercurial-devel mailing list