diff options
author | rubidium <rubidium@openttd.org> | 2010-08-02 18:37:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-02 18:37:37 +0000 |
commit | 50f24a27622e822d5070c939c0d3023938867869 (patch) | |
tree | 2b145442439a07beccd9efd1b112b7f707dd4b51 | |
parent | 3c7b220d590a2236bcbe013623078b214ab91669 (diff) | |
download | openttd-50f24a27622e822d5070c939c0d3023938867869.tar.xz |
(svn r20313) -Fix (r20309): Mercurial version detection picked up a bit more than it should've picked up.
-rwxr-xr-x | findversion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/findversion.sh b/findversion.sh index 95ba71201..f20dc828b 100755 --- a/findversion.sh +++ b/findversion.sh @@ -107,7 +107,7 @@ elif [ -d "$ROOT_DIR/.hg" ]; then HASH=`LC_ALL=C hg id -i | cut -c1-12` REV="h`echo $HASH | cut -c1-8`" BRANCH=`hg branch | sed 's@^default$@@'` - REV_NR=`LC_ALL=C hg log -f -k "(svn r" -l 1 --template "{desc}\n" | sed "s@.*(svn r\([0-9]*\)).*@\1@"` + REV_NR=`LC_ALL=C hg log -f -k "(svn r" -l 1 --template "{desc}\n" | head -n 1 | sed "s@.*(svn r\([0-9]*\)).*@\1@"` else # We don't know MODIFIED="1" |