--- a/src/Pure/General/mercurial.scala Mon Oct 03 21:14:21 2016 +0200
+++ b/src/Pure/General/mercurial.scala Mon Oct 03 21:36:10 2016 +0200
@@ -45,6 +45,9 @@
def manifest(rev: String = "", options: String = ""): List[String] =
command("manifest " + options + opt_rev(rev)).check.out_lines
+ def log(rev: String = "", options: String = ""): String =
+ Library.trim_line(command("log " + options + opt_rev(rev)).check.out)
+
def pull(remote: String = "", rev: String = "", options: String = ""): Unit =
command("pull " + options + opt_rev(rev) + optional(remote)).check
--- a/src/Pure/Tools/build_history.scala Mon Oct 03 21:14:21 2016 +0200
+++ b/src/Pure/Tools/build_history.scala Mon Oct 03 21:36:10 2016 +0200
@@ -29,7 +29,7 @@
build_args: List[String] = Nil): Process_Result =
{
hg.update(rev = rev, clean = true)
- if (verbose) hg.command("log -l1").check.print
+ if (verbose) Output.writeln(hg.log(rev, options = "-l1"))
def bash(script: String): Process_Result =
Isabelle_System.bash("env ISABELLE_IDENTIFIER=" + File.bash_string(isabelle_identifier) +