Merge branch 'darcs' into master
[git-darcs-import.git] / tests / no_pristine.sh
blob9e0096c8fed632f25ff527614f956d71c74c2444
1 #!/usr/bin/env bash
3 # This test script, originally written by David Roundy and Ian Lynagh is in
4 # the public domain.
6 set -ev
8 rm -rf temp1
10 mkdir temp1
11 cd temp1
13 darcs initialize --no-pristine-tree
14 echo ALL --author Testing Person >> _darcs/prefs/defaults
15 echo ALL --ignore-times >> _darcs/prefs/defaults
17 echo foo > bar
18 darcs add bar
19 darcs record -a -m baz bar
21 date > bar
22 darcs record --no-test -a -m 'patch 2'
24 darcs setpref test 'echo hello world'
25 darcs record -a -m 'setpref'
27 date >> bar
28 darcs record -a -m 'record with test'
30 cd ..
32 rm -rf temp1