contrib/plan9/9mail
author Pierre-Yves David <pierre-yves.david@fb.com>
Wed, 25 Jun 2014 16:37:06 +0100
changeset 22124 e51784473fc0
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
test-revert: prepare methodical testing of revert cases We introduce a script to generate revert cases and use it to prepare a test repo. See the inline documentation for details.

#!/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