findversion.sh
changeset 10162 4a256abc0087
parent 10097 9ef63102fa6f
child 10164 b9054cc1f7c9
--- a/findversion.sh	Wed Sep 17 02:30:24 2008 +0000
+++ b/findversion.sh	Wed Sep 17 08:32:26 2008 +0000
@@ -91,7 +91,7 @@
 	if [ -n "`hg status \"$SRC_DIR\" | grep -v '^?'`" ]; then
 		MODIFIED="2"
 	fi
-	HASH=`LC_ALL=C hg tip 2>/dev/null | head -n 1 | cut -d: -f3 | cut -c1-8`
+	HASH=`LC_ALL=C hg parents 2>/dev/null | head -n 1 | cut -d: -f3 | cut -c1-8`
 	REV="h$HASH"
 	BRANCH=`hg branch | sed 's/^default$//'`
 	REV_NR=`LC_ALL=C hg log -k "svn" -l 1 --template "{desc}\n" "$SRC_DIR" | grep "^(svn r[0-9]*)" | head -n 1 | sed "s/.*(svn r\([0-9]*\)).*/\1/"`