[PATCH 2 of 2] chg: allows default hg path to be overrided

Sean Farley sean at farley.io
Sun Mar 20 19:07:54 EDT 2016

Jun Wu <quark at fb.com> writes:

> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1458513800 25200
> #      Sun Mar 20 15:43:20 2016 -0700
> # Node ID 95197bd663b214584480e844eac49c0620514f8f
> # Parent  cab48617a18dbccb5286ed8f90bfa608fe1d9f90
> chg: allows default hg path to be overrided
> Before this patch, chg will fall back to "hg" if neither CHGHG nor HG are set.
> This may have trouble if the "hg" in PATH is not compatible with chg, which
> can happen, for example, an old hg is installed in a virtualenv.
> Since it's very hard to do a quick hg version check from chg, after discussion
> in IRC with smf and marmoute, the quickest solution is to build a package with
> a hardcoded absolute hg path in chg. This patch makes it possible by adding a
> C macro HGPATH.


More information about the Mercurial-devel mailing list