build-scripts/showrev.sh
author Ryan C. Gordon <icculus@icculus.org>
Sun, 28 Feb 2010 02:07:40 -0500
changeset 4419 5e7e1f1a4056
parent 3280 00cace2d9080
child 4464 fa77a6429698
permissions -rwxr-xr-x
Changed revision details to be a string (an hg changeset) instead of an int.
slouken@2982
     1
#!/bin/sh
slouken@2982
     2
#
slouken@2982
     3
# Print the current source revision, if available
slouken@2982
     4
icculus@4419
     5
# FIXME: this prints the tip, which isn't useful if you're on a different
icculus@4419
     6
#  branch, or just not sync'd to the tip.
icculus@4419
     7
hg tip --template 'hg-{rev}:{node|short}'
slouken@2982
     8