From b61233d524cb49e425023709ed73cee38e9639f2 Mon Sep 17 00:00:00 2001 From: mduigou Date: Tue, 2 Apr 2013 14:56:19 -0700 Subject: [PATCH] 8011342: hgforest.sh : 'python --version' not supported on older python Reviewed-by: wetmore --- common/bin/hgforest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/bin/hgforest.sh b/common/bin/hgforest.sh index 4c97753..ebb76df 100644 --- a/common/bin/hgforest.sh +++ b/common/bin/hgforest.sh @@ -51,7 +51,7 @@ if [ "#!" = "$has_hash_bang" ] ; then bpython="`basename "$python"`" fi -if [ -x "$python" -a ! -d "$python" -a "`${python} --version 2>&1 | cut -f 1 -d " "`" == "Python" ] ; then +if [ -x "$python" -a ! -d "$python" -a "`${python} -V 2>&1 | cut -f 1 -d " "`" == "Python" ] ; then hg="${python} -u ${whichhg}" else echo Cannot find python from hg launcher. Running plain hg, which probably has buffered stdout. -- GitLab