# HG changeset patch # User mduigou # Date 1364939779 25200 # Node ID 159143926e11d096365631757e864cb8ee413d41 # Parent dcda915025f2e055f5da167bd0e1dad27d259da1 8011342: hgforest.sh : 'python --version' not supported on older python Reviewed-by: wetmore diff -r dcda915025f2 -r 159143926e11 common/bin/hgforest.sh --- a/common/bin/hgforest.sh Mon Apr 01 21:11:51 2013 -0700 +++ b/common/bin/hgforest.sh Tue Apr 02 14:56:19 2013 -0700 @@ -51,7 +51,7 @@ 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.