Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.
authorSam Lantinga <slouken@libsdl.org>
Sat, 01 Oct 2016 12:52:55 -0700
changeset 104200d91817f35e9
parent 10419 efb26f3918c4
child 10421 55fd4e519a58
Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't useful if you're on a different -# branch, or just not sync'd to the tip.

winterknight

The showrev.sh 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.
build-scripts/showrev.sh
     1.1 --- a/build-scripts/showrev.sh	Sat Oct 01 12:48:08 2016 -0700
     1.2 +++ b/build-scripts/showrev.sh	Sat Oct 01 12:52:55 2016 -0700
     1.3 @@ -2,6 +2,4 @@
     1.4  #
     1.5  # Print the current source revision, if available
     1.6  
     1.7 -# FIXME: this prints the tip, which isn't useful if you're on a different
     1.8 -#  branch, or just not sync'd to the tip.
     1.9 -hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)
    1.10 +hg parents --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)