comparison publish.sh @ 33:f90bd2d1a12b

Converted revision reporting from SVN to hg.
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 29 Nov 2010 22:15:01 +0000
parents
children 5afefe51dcdc
comparison
equal deleted inserted replaced
32:3000bb94addb 33:f90bd2d1a12b
1 #! /bin/sh
2
3 VERSION=`hg summary | grep '^parent' | sed -En 's/^parent: [0-9]*:([0-9a-f]+) .*$/\1/p'`
4 if [ -z "$VERSION" ]
5 then
6 echo The current Mercurial changeset could not be determined. >&2
7 exit 1
8 fi
9
10 sed 's/$$REV$\$/hg '"$VERSION/" test-svn.py >test.py
11 chmod +x test.py