repo.or.cz
/
git-darcs-import.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow upstream changes -- rest
[git-darcs-import.git]
/
tests
/
push_lock.sh
blob
8f96b0e51ae188e8c568c101866a75f6b5f9a3f4
1
#!/usr/bin/env bash
2
3
# For issue257: push => incorrect return code when couldn't get lock
4
5
set -ev
6
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
24
fi
25
cd
..
26
rm
-rf
tempc temps