contrib/chg/chg.c
changeset 28605 baa073200ba2
parent 28555 1435a8e9b5fe
child 28769 222f482930c8
--- 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;
 }