more operations;
authorwenzelm
Mon Nov 13 15:00:21 2017 +0100 (19 months ago)
changeset 6706846ce32fd5f53
parent 67067 02729ced9b1e
child 67069 f11486d31586
more operations;
src/Pure/General/mercurial.scala
     1.1 --- a/src/Pure/General/mercurial.scala	Mon Nov 13 14:39:03 2017 +0100
     1.2 +++ b/src/Pure/General/mercurial.scala	Mon Nov 13 15:00:21 2017 +0100
     1.3 @@ -94,6 +94,9 @@
     1.4        ssh.execute(cmdline)
     1.5      }
     1.6  
     1.7 +    def add(files: List[Path]): Unit =
     1.8 +      hg.command("add", files.map(ssh.bash_path(_)).mkString(" "))
     1.9 +
    1.10      def archive(target: String, rev: String = "", options: String = ""): Unit =
    1.11        hg.command("archive", opt_rev(rev) + " " + Bash.string(target), options).check
    1.12