10 darcs record
-a -m add
-A x
11 echo goodbye world
>> foo
12 echo y
/y |
tr / \\012 | darcs revert
13 darcs show contents foo |
cmp foo
-
15 # Now let's test a trickier revert where changes commute nontrivially.
25 darcs record
-a -A me
-m cleanup
28 cat foo.tmp |
grep -v b |
grep -v d
> foo
30 echo "nyy" | darcs revert
32 DARCS_DONT_COLOR
=1 darcs wh
> whatsnew
37 diff -c correct whatsnew
39 # Try a situation where earlier (kept) changes are depended upon by the
40 # changes we want to revert:
42 darcs record
-a -A me
-m cleanup
44 echo hello world
> bar
45 echo hello world
> foo
47 darcs replace hello goodbye bar foo
49 echo "cnnnyy/y" |
tr / \\012 | darcs revert
51 DARCS_DONT_COLOR
=1 darcs wh
> whatsnew
63 diff -c correct whatsnew