src/Pure/System/isabelle_system.scala
changeset 62615 8e5b631d203b
parent 62614 0a01bc7f0946
child 62616 b89d4b320464
--- 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)