update readmes
[git-darcs-import.git] / tests / push_lock.sh
blob8f96b0e51ae188e8c568c101866a75f6b5f9a3f4
1 #!/usr/bin/env bash
3 # For issue257: push => incorrect return code when couldn't get lock
5 set -ev
7 rm -rf tempc
8 mkdir tempc
9 cd tempc
10 darcs init
11 echo foo > foo.c
12 darcs rec -Ax -alm init
13 cd ..
14 rm -rf temps
15 darcs get tempc temps
16 cd temps
17 echo server >> foo.c
18 darcs rec -Ax -alm server
19 cd ../tempc
20 echo client >> foo.c
21 darcs rec -Ax -alm client
22 if darcs push -a ../temps; then
23 false
25 cd ..
26 rm -rf tempc temps