equal
deleted
inserted
replaced
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 => |