src/Pure/General/mercurial.scala
changeset 66105 8889aad1ff92
parent 66104 5aab14a64a03
child 66558 37b16f8af351
equal deleted inserted replaced
66104:5aab14a64a03 66105:8889aad1ff92
    70       ssh match {
    70       ssh match {
    71         case None => root.is_dir
    71         case None => root.is_dir
    72         case Some(ssh) => ssh.is_dir(root)
    72         case Some(ssh) => ssh.is_dir(root)
    73       }
    73       }
    74     if (present) { val hg = repository(root, ssh = ssh); hg.pull(remote = source); hg }
    74     if (present) { val hg = repository(root, ssh = ssh); hg.pull(remote = source); hg }
    75     else clone_repository(source, root, options = "--pull --noupdate", ssh = ssh)
    75     else clone_repository(source, root, options = "--noupdate", ssh = ssh)
    76   }
    76   }
    77 
    77 
    78   class Repository private[Mercurial](root_path: Path, ssh: Option[SSH.Session])
    78   class Repository private[Mercurial](root_path: Path, ssh: Option[SSH.Session])
    79   {
    79   {
    80     hg =>
    80     hg =>