Skip to content

Commit

Permalink
Fixed bug 3276 - build-scripts/showrev.sh prints the tip, which isn't…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
slouken committed Oct 1, 2016
1 parent bb24662 commit 6a9ee8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build-scripts/showrev.sh
Expand Up @@ -2,6 +2,4 @@
#
# Print the current source revision, if available

# FIXME: this prints the tip, which isn't useful if you're on a different
# branch, or just not sync'd to the tip.
hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)
hg parents --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)

0 comments on commit 6a9ee8f

Please sign in to comment.