--- a/contrib/chg/chg.c Sun Mar 20 15:25:25 2016 -0700
+++ b/contrib/chg/chg.c Sun Mar 20 15:43:20 2016 -0700
@@ -194,7 +194,11 @@
if (!hgcmd || hgcmd[0] == '\0')
hgcmd = getenv("HG");
if (!hgcmd || hgcmd[0] == '\0')
+#ifdef HGPATH
+ hgcmd = (HGPATH);
+#else
hgcmd = "hg";
+#endif
}
return hgcmd;
}