more robust: normalize potentially symbolic rev;
authorwenzelm
Tue, 06 Mar 2018 16:54:13 +0100
changeset 67773 4a7ed678785c
parent 67772 71a318559e30
child 67774 5437491732d2
more robust: normalize potentially symbolic rev;
src/Pure/Admin/build_history.scala
--- a/src/Pure/Admin/build_history.scala	Tue Mar 06 16:08:12 2018 +0100
+++ b/src/Pure/Admin/build_history.scala	Tue Mar 06 16:54:13 2018 +0100
@@ -537,6 +537,8 @@
       execute("Admin/build", "jars_fresh")
     }
 
+    val rev_id = self_hg.id(rev)
+
 
     /* Isabelle other + AFP repository */
 
@@ -545,7 +547,7 @@
     }
     val other_hg =
       Mercurial.clone_repository(
-        ssh.bash_path(isabelle_repos_self), isabelle_repos_other, rev = rev, ssh = ssh)
+        ssh.bash_path(isabelle_repos_self), isabelle_repos_other, rev = rev_id, ssh = ssh)
 
     val afp_options =
       if (afp_rev.isEmpty) ""
@@ -564,7 +566,7 @@
 
       execute("Admin/build_history",
         "-o " + ssh.bash_path(output_file) +
-          (if (rev == "") "" else " -r " + Bash.string(rev)) + " " +
+          (if (rev == "") "" else " -r " + Bash.string(rev_id)) + " " +
           options + afp_options + " " + ssh.bash_path(isabelle_repos_other) + " " + args,
         echo = true, strict = false)