--- a/lib/Tools/version Thu Mar 15 22:17:56 2018 +0100
+++ b/lib/Tools/version Thu Mar 15 22:28:20 2018 +0100
@@ -60,7 +60,7 @@
if [ -n "$ISABELLE_ID" ]; then
echo "$ISABELLE_ID"
else
- "${HG:-hg}" -R "$ISABELLE_HOME" id -i -r tip 2>/dev/null || echo undefined
+ "${HG:-hg}" -R "$ISABELLE_HOME" log -r "p1()" --template="{node|short}\n" 2>/dev/null || echo undefined
fi
else
echo 'repository version' # filled in automatically!
--- a/src/Pure/System/isabelle_system.scala Thu Mar 15 22:17:56 2018 +0100
+++ b/src/Pure/System/isabelle_system.scala Thu Mar 15 22:28:20 2018 +0100
@@ -146,7 +146,7 @@
def isabelle_id(): String =
proper_string(getenv("ISABELLE_ID")) getOrElse
- Mercurial.repository(Path.explode("~~")).id()
+ Mercurial.repository(Path.explode("~~")).parent()