src/Pure/System/isabelle_system.scala
changeset 67865 ab0b8e388967
parent 67835 c8e4ee2b5482
child 67872 39b27d38a54c
--- a/src/Pure/System/isabelle_system.scala	Thu Mar 15 11:27:32 2018 +0100
+++ b/src/Pure/System/isabelle_system.scala	Thu Mar 15 11:44:07 2018 +0100
@@ -144,6 +144,10 @@
 
   def cygwin_root(): String = getenv_strict("CYGWIN_ROOT")
 
+  def isabelle_id(): String =
+    proper_string(getenv("ISABELLE_ID")) getOrElse
+      Mercurial.repository(Path.explode("~~")).id()
+
 
 
   /** file-system operations **/