--- a/src/Pure/General/mercurial.scala Fri Mar 27 13:04:15 2020 +0100
+++ b/src/Pure/General/mercurial.scala Fri Mar 27 22:01:27 2020 +0100
@@ -44,7 +44,7 @@
def find_repository(start: Path, ssh: SSH.System = SSH.Local): Option[Repository] =
{
- def find(root: Path): Option[Repository] =
+ @tailrec def find(root: Path): Option[Repository] =
if (is_repository(root, ssh)) Some(repository(root, ssh = ssh))
else if (root.is_root) None
else find(root + Path.parent)
@@ -95,7 +95,7 @@
}
def add(files: List[Path]): Unit =
- hg.command("add", files.map(ssh.bash_path(_)).mkString(" "))
+ hg.command("add", files.map(ssh.bash_path).mkString(" "))
def archive(target: String, rev: String = "", options: String = ""): Unit =
hg.command("archive", opt_rev(rev) + " " + Bash.string(target), options).check