changeset 144:25b929aa92a1

publish.sh now uses hg identify
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 27 May 2011 02:27:07 +0100
parents 92f76baebcc6
children d2c266c8d820
files publish.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/publish.sh	Wed May 25 22:20:56 2011 +0100
+++ b/publish.sh	Fri May 27 02:27:07 2011 +0100
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-VERSION=`hg summary | grep '^parent' | sed -n 's/^parent: [0-9]*:\([0-9a-f]\{1,\}\) .*$/\1/p'`
+VERSION=`hg identify | awk '{ print $1 }'`
 if [ -z "$VERSION" ]
 then
 	echo The current Mercurial changeset could not be determined. >&2