Use chg instead of hg if available - localbin - leot's localbin (~/bin)
(HTM) hg clone https://bitbucket.org/iamleot/localbin
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 1e0695db21bafba585c15f60b6022affee9adcea
(DIR) parent 85888e776463bfa044035a377f601aff5ef4d5b5
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 14 Jun 2019 19:12:16
Use chg instead of hg if available
Diffstat:
hg | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff -r 85888e776463 -r 1e0695db21ba hg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hg Fri Jun 14 19:12:16 2019 +0200
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+export CHGHG=/usr/pkg/bin/hg
+
+if [ -x /usr/pkg/bin/chg ]; then
+ exec /usr/pkg/bin/chg "$@"
+fi
+
+exec /usr/pkg/bin/hg "$@"