5 # The builtin ! has the wrong semantics for not.
6 not
() { "$@" && exit 1 ||
:; }
8 # pull from not empty repo to empty repo
16 darcs record
--all --patch-name=a
19 darcs pull
--all --dont-allow-conflicts ..
/temp1
20 test `darcs changes --count` = "1"
23 # push from not empty repo to empty repo
33 darcs record
--all --patch-name=a
34 darcs push
--all ..
/temp1
36 test `darcs changes --count` = "1"
39 # send from not empty repo to not empty repo
47 darcs record
--all --patch-name=a
49 for i
in 1 2 3 4 5 6 7 8 9; do
50 echo Change number
$i >> a
51 darcs record
-a -m "change a $i"
58 darcs record
--all --patch-name=b
60 for i
in 1 2 3 4 5 6 7 8 9; do
61 echo Change number
$i >> b
62 darcs record
-a -m "change b $i"
65 echo no | darcs send
--all --to=random@random
--sendmail-command=false ..
/temp1
66 echo yes | not darcs send
--all --to=random@random
--sendmail-command=false ..
/temp1
67 not darcs send
--all --to=random@random
--sendmail-command=false
--allow-unrelated-repos ..
/temp1