get_source.sh

changeset 1741
abafc84654a6
parent 1147
ec58dd8b23b6
child 1859
8b0588603185
equal deleted inserted replaced
1740:44d21ca8907e 1741:abafc84654a6
65 hgwhere="`command -v hg`" 65 hgwhere="`command -v hg`"
66 if [ "x$hgwhere" = "x" ]; then 66 if [ "x$hgwhere" = "x" ]; then
67 error "Could not locate Mercurial command" 67 error "Could not locate Mercurial command"
68 fi 68 fi
69 69
70 hgversion="`hg --version 2> /dev/null | sed -n -e 's@^Mercurial Distributed SCM (version \([^+]*\).*)\$@\1@p'`" 70 hgversion="`LANGUAGE=en hg --version 2> /dev/null | sed -n -e 's@^Mercurial Distributed SCM (version \([^+]*\).*)\$@\1@p'`"
71 if [ "x${hgversion}" = "x" ] ; then 71 if [ "x${hgversion}" = "x" ] ; then
72 error "Could not determine Mercurial version of $hgwhere" 72 error "Could not determine Mercurial version of $hgwhere"
73 fi 73 fi
74 74
75 hgmajor="`version_field $hgversion 1`" 75 hgmajor="`version_field $hgversion 1`"

mercurial