src/Pure/General/mercurial.scala
changeset 75491 47d790984e82
parent 75489 f08fd5048df3
child 75493 f775dfb55655
equal deleted inserted replaced
75490:5e37ea93759d 75491:47d790984e82
   260       filter: List[String] = Nil,
   260       filter: List[String] = Nil,
   261       rev: String = ""
   261       rev: String = ""
   262     ): Unit = {
   262     ): Unit = {
   263       require(ssh == SSH.Local, "local repository required")
   263       require(ssh == SSH.Local, "local repository required")
   264 
   264 
   265       Isabelle_System.with_tmp_dir("rsync") { tmp_dir =>
   265       Isabelle_System.with_tmp_dir("sync") { tmp_dir =>
   266         val (options, source) =
   266         val (options, source) =
   267           if (rev.isEmpty) {
   267           if (rev.isEmpty) {
   268             val exclude_path = tmp_dir + Path.explode("exclude")
   268             val exclude_path = tmp_dir + Path.explode("exclude")
   269             val exclude = status(options = "--unknown --ignored --no-status")
   269             val exclude = status(options = "--unknown --ignored --no-status")
   270             File.write(exclude_path, cat_lines((".hg" :: exclude).map("/" + _)))
   270             File.write(exclude_path, cat_lines((".hg" :: exclude).map("/" + _)))