src/Pure/General/mercurial.scala
changeset 67068 46ce32fd5f53
parent 67066 1645cef7a49c
child 67755 208235e594f6
--- a/src/Pure/General/mercurial.scala	Mon Nov 13 14:39:03 2017 +0100
+++ b/src/Pure/General/mercurial.scala	Mon Nov 13 15:00:21 2017 +0100
@@ -94,6 +94,9 @@
       ssh.execute(cmdline)
     }
 
+    def add(files: List[Path]): Unit =
+      hg.command("add", files.map(ssh.bash_path(_)).mkString(" "))
+
     def archive(target: String, rev: String = "", options: String = ""): Unit =
       hg.command("archive", opt_rev(rev) + " " + Bash.string(target), options).check