clarified setup_repository: even more uniform pull vs. clone (see also e84cba30d7ff);
authorwenzelm
Tue, 01 Nov 2016 14:59:50 +0100
changeset 64451 cdbfa9f64110
parent 64450 73859eb8d1fe
child 64452 b52141002646
clarified setup_repository: even more uniform pull vs. clone (see also e84cba30d7ff);
src/Pure/General/mercurial.scala
--- a/src/Pure/General/mercurial.scala	Tue Nov 01 01:25:54 2016 +0100
+++ b/src/Pure/General/mercurial.scala	Tue Nov 01 14:59:50 2016 +0100
@@ -54,7 +54,7 @@
         case None => root.is_dir
         case Some(ssh) => ssh.is_dir(root)
       }
-    if (present) { val hg = repository(root, ssh = ssh); hg.pull(); hg }
+    if (present) { val hg = repository(root, ssh = ssh); hg.pull(remote = source); hg }
     else clone_repository(source, root, options = "--noupdate", ssh = ssh)
   }