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`" |