--- a/src/Pure/General/mercurial.scala Fri May 24 17:06:57 2024 +0200
+++ b/src/Pure/General/mercurial.scala Fri May 24 17:14:02 2024 +0200
@@ -168,7 +168,7 @@
for (hg <- detect_repository(root, ssh = ssh)) yield hg.id(rev = rev)
def repository(root: Path, ssh: SSH.System = SSH.Local): Repository =
- detect_repository(root, ssh = ssh) getOrElse error("Bad hg repository " + root.expand)
+ detect_repository(root, ssh = ssh) getOrElse error("Bad hg repository " + ssh.expand_path(root))
def self_repository(): Repository = repository(Path.ISABELLE_HOME)