[PATCH 3 of 3 v3] run-tests: warn about symlinks to non hg scripts

Yuya Nishihara yuya at tcha.org
Tue Feb 9 10:00:59 EST 2016


On Mon, 08 Feb 2016 17:00:19 -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1454971819 0
> #      Mon Feb 08 22:50:19 2016 +0000
> # Node ID 24db61450c0f759843d34eb07407be703c40880b
> # Parent  d3f1b7ee5e7091afa7bf8059013ddfb3b385a37c
> run-tests: warn about symlinks to non hg scripts
> 
> If you symlink /usr/bin/true to /something/hg and try to run --with-hg=/something/hg,
> run-tests will end up running /usr/bin/hg, not /usr/bin/true.

Good catch. Pushed to the clowncopter, thanks.

> +error paths
> +
> +  $ ln -s `which true` hg

Added #if symlink and execbit.


More information about the Mercurial-devel mailing list