Follow upstream changes -- rest
[git-darcs-import.git] / tests / prefs_binary.sh
blob2674bafda365d5c9cf9990dd98301e0034e71fff
1 #!/usr/bin/env bash
2 set -ev
4 # Test that _darcs/prefs/binaries
5 not () { "$@" && exit 1 || :; }
6 rm -rf temp1
8 mkdir temp1
9 cd temp1
10 darcs init
11 mkdir d
12 touch d/t.t
13 darcs add d/t.t
14 darcs record -am "initial record"
15 echo 'some change' >> d/t.t
16 echo n | darcs record --interactive > log
17 # pre-test: plain text files are not binary
18 not grep binary log
19 echo 'd/t' >> _darcs/prefs/binaries
20 echo n | darcs record --interactive > log
21 grep binary log
22 cd ..
24 rm -rf temp1