packages feed

darcs-2.3.0: bugs/issue1406.sh

#!/bin/sh
rm -rf temp1
darcs init --repodir temp1

cd temp1

echo "test exit 1" > _darcs/prefs/prefs
echo "name" > _darcs/prefs/author
echo "a" > a
darcs record --look-for-adds --no-test --all --patch-name=p1
echo "b" >> a
echo "y" | darcs amend-record --all --patch=p1

# There should be one patch in the repo
test 1 -eq `darcs changes --count` || exit 1

# Another check: there should be nothing new after a is restored
echo "a" > a
darcs whatsnew -l && exit 1 || exit 0