build-scripts/showrev.sh
changeset 4419 5e7e1f1a4056
parent 3280 00cace2d9080
child 4464 fa77a6429698
     1.1 --- a/build-scripts/showrev.sh	Sun Feb 28 02:06:47 2010 -0500
     1.2 +++ b/build-scripts/showrev.sh	Sun Feb 28 02:07:40 2010 -0500
     1.3 @@ -2,14 +2,7 @@
     1.4  #
     1.5  # Print the current source revision, if available
     1.6  
     1.7 -srcdir=`dirname $0`/..
     1.8 +# FIXME: this prints the tip, which isn't useful if you're on a different
     1.9 +#  branch, or just not sync'd to the tip.
    1.10 +hg tip --template 'hg-{rev}:{node|short}'
    1.11  
    1.12 -if [ -d $srcdir/.svn ]; then
    1.13 -    cd $srcdir
    1.14 -    (svnversion -c 2>/dev/null || svnversion .) | \
    1.15 -        sed -e 's,\([0-9]*\)[A-Z]*,\1,' \
    1.16 -            -e 's,[0-9]*:\([0-9]*\)[A-Z]*,\1,'
    1.17 -else
    1.18 -     cd $srcdir
    1.19 -     git svn info | grep Revision | awk '{ print $2 }'
    1.20 -fi