tuned signature;
authorwenzelm
Sun, 13 Mar 2016 14:27:31 +0100
changeset 62615 8e5b631d203b
parent 62614 0a01bc7f0946
child 62616 b89d4b320464
tuned signature;
src/Pure/System/isabelle_system.scala
src/Pure/Tools/check_sources.scala
--- a/src/Pure/System/isabelle_system.scala	Sun Mar 13 13:04:50 2016 +0100
+++ b/src/Pure/System/isabelle_system.scala	Sun Mar 13 14:27:31 2016 +0100
@@ -312,8 +312,8 @@
   def pdf_viewer(arg: Path): Unit =
     bash("exec \"$PDF_VIEWER\" '" + File.standard_path(arg) + "' >/dev/null 2>/dev/null &")
 
-  def hg(cmd_line: String, cwd: Path = Path.current): Process_Result =
-    bash("cd " + File.bash_path(cwd) + " && \"${HG:-hg}\" " + cmd_line)
+  def hg(cmd_line: String, cwd: JFile = null): Process_Result =
+    bash("\"${HG:-hg}\" " + cmd_line, cwd = cwd)
 
 
 
--- a/src/Pure/Tools/check_sources.scala	Sun Mar 13 13:04:50 2016 +0100
+++ b/src/Pure/Tools/check_sources.scala	Sun Mar 13 14:27:31 2016 +0100
@@ -43,7 +43,7 @@
     Output.writeln("Checking " + root + " ...")
     Isabelle_System.hg("--repository " + File.bash_path(root) + " root").check
     for {
-      file <- Isabelle_System.hg("manifest", root).check.out_lines
+      file <- Isabelle_System.hg("manifest", cwd = root.file).check.out_lines
       if file.endsWith(".thy") || file.endsWith(".ML") || file.endsWith("/ROOT")
     } check_file(root + Path.explode(file))
   }