# HG changeset patch # User wenzelm # Date 1510581621 -3600 # Node ID 46ce32fd5f53856219063911c890a2b5f8ba8ea2 # Parent 02729ced9b1eae158b6a559e597da1a853ab1a70 more operations; diff -r 02729ced9b1e -r 46ce32fd5f53 src/Pure/General/mercurial.scala --- 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