#!/bin/bash
[ -z "$2" ] && echo "usage: $0 <dir> <comment>" && exit 1
DARCS=~/darcs
cd $DARCS/$1
exec darcs record -m "$2"
