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
/
unrevert-add.sh
blob
9140b8d14bd6971cb652d183a87da86db6444618
1
#!/usr/bin/env bash
2
set -ev
3
4
## The builtin ! has the wrong semantics for not.
5
not
() {
"$@"
&&
exit
1
||
:; }
6
7
rm
-rf
temp1
8
mkdir temp1
9
cd
temp1
10
darcs init
11
echo
foo
>
foo
12
darcs add foo
13
darcs whatsnew
>
correct
14
cat
correct
15
16
darcs revert
-a
17
18
not darcs whatsnew
19
20
darcs unrevert
-a
21
22
darcs whatsnew
>
unrecorded
23
cat
unrecorded
24
25
diff
-u
correct unrecorded
26
27
cd
..
28
rm
-rf
temp1