#!/usr/bin/env bash
set -ev

test $DARCS || DARCS=$PWD/../darcs

rm -rf temp1 temp2
mkdir temp1
cd temp1
$DARCS initialize --old-fashion
echo ALL ignore-times >> _darcs/prefs/defaults
cp _darcs/prefs/boring .boring
$DARCS add .boring
$DARCS setpref boringfile .boring
$DARCS record -a -m p1 -A me
cd ..
$DARCS get --hashed temp1 temp2
cmp temp1/_darcs/prefs/prefs temp2/_darcs/prefs/prefs
rm -rf temp1 temp2
