#!/usr/bin/env bash

set -ev

test $DARCS || DARCS=$PWD/../darcs
rm -rf temp1
mkdir temp1
cd temp1
$DARCS init

date > foo
$DARCS record -a -m add_foo -A x --look-for-adds

$DARCS setpref test 'ls && test ! -e foo'
$DARCS record -a -m settest -A x --no-test

$DARCS mv foo bar
$DARCS record --debug -a -m mvfoo -A x

$DARCS check

cd ..
rm -rf temp1

