update readmes
[git-darcs-import.git] / tests / perms.sh
blob3378cf138323b43e9e112141107fbef9d4c8c939
1 #!/usr/bin/env bash
2 set -ev
4 uname | grep "MINGW" > /dev/null && exit 0
6 rm -rf temp1 temp2
7 mkdir temp1
8 cd temp1
9 darcs init
10 echo record author me > _darcs/prefs/defaults
11 echo ALL all >> _darcs/prefs/defaults
12 echo ALL verbose >> _darcs/prefs/defaults
13 echo ALL ignore-times >> _darcs/prefs/defaults
14 touch foo
15 darcs add foo
16 darcs record -m add_foo
17 echo hello >> foo
18 darcs record -m mod_foo
19 cd ..
20 darcs get --repo-name temp2 temp1
21 cd temp2
22 cp ../temp1/_darcs/prefs/defaults _darcs/prefs
23 echo y/d/y | tr / \\012 | darcs unpull --interactive
24 test -f foo -a ! -s foo
25 chmod +x foo
26 test -x foo
27 darcs pull ../temp1
28 test -x foo
29 cd ..
30 rm -rf temp1 temp2