changeset 1530:63fa53d3b6c7 fuzz

print hg revid
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Feb 2018 21:59:52 +0800
parents 66a1a2547133
children bb8eaa26bc93
files configure.ac
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Wed Feb 21 21:49:24 2018 +0800
+++ b/configure.ac	Wed Feb 21 21:59:52 2018 +0800
@@ -9,6 +9,12 @@
 AC_INIT
 AC_CONFIG_SRCDIR(buffer.c)
 
+# Record which revision is being built
+if which -s hg && test -d "$srcdir/.hg"; then
+	hgrev=`hg id -i -R "$srcdir"`
+	echo "Source directory Mercurial base revision $hgrev"
+fi
+
 # Checks for programs.
 AC_PROG_CC