author Sam Lantinga
Sat, 01 Oct 2016 12:52:55 -0700
changeset 10420 0d91817f35e9
parent 4935 a727eda441be
child 13711 a375181874ce
permissions -rwxr-xr-x
Fixed bug 3276 - build-scripts/ prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.


The script shows the tip, instead of the current hg revision. This can be mismatched if one were to use hg update -r ??? to revert to a previous revision.

Patch uses parents instead of tip, which will show the revision that the source is compiled with, instead of the latest revision that the user who is compiling has downloaded.
     1 #!/bin/sh
     2 #
     3 # Print the current source revision, if available
     5 hg parents --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)