contrib/plan9/9mail
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 27 Dec 2019 15:53:16 -0800
changeset 44042 fa808e65eabb
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
tests: split out another ~1/2 of test-graft.t The tests involving renames were also quite independent from the rest. Differential Revision: https://phab.mercurial-scm.org/D7803

#!/bin/rc
# 9mail - Mercurial email wrapper for upas/marshal

fn usage {
	echo >[1=2] usage: mercurial/9mail -f from to [cc]
	exit usage
}

from=()
cc=()
to=()

switch($1){
case -f
	from=$2
case *
	usage
}

to=($3)
if(~ $#* 4)
	cc=(-C $4)

upasname=$from
upas/marshal $cc $to