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.sh
blob
a00601690648746fc5dd2a5f5b0a988d7e7ec418
1
#!/usr/bin/env bash
2
set -ev
3
4
rm
-rf
temp1
5
mkdir temp1
6
cd
temp1
7
darcs init
8
echo
hello world
>
foo
9
darcs add foo
10
darcs record
-a -m
add
-A
x
11
echo
goodbye world
>>
foo
12
cp
foo bar
13
darcs revert
-a
14
darcs show contents foo |
cmp
foo
-
15
16
darcs unrevert
-a
17
cmp
foo bar
18
19
cd
..
20
rm
-rf
temp1
21