contrib/plan9/9mail
author Matt Mackall <mpm@selenic.com>
Fri, 10 Oct 2014 13:31:06 -0500
changeset 22896 7e9cbb9c6053
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
dirstate: use 'm' state in otherparent to reduce ambiguity In rebase-like operations where we abandon the second parent, we can correctly fix up the state in setparents.

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