4 # Set up a base repo. Our experiment will start from this point
8 printf "Line1\nLine2\nLine3\n" > foo
12 # Now we want to record patch A, which will turn "Line2" into "Hello"
15 printf "Line1\nHello\nLine3\n" > foo
16 darcs rec
--ignore-times -am A
19 # Make B the same as A
22 printf "Line1\nHello\nLine3\n" > foo
23 darcs rec
--ignore-times -am B
26 # Now we make a patch C that depends on A
29 printf "Line1\nWorld\nLine3\n" > foo
30 darcs rec
--ignore-times -am C
47 # Now we can pull just B and C into base
50 darcs pull ..
/abc
-ap 'B|C'
53 # Now we have base, B and C in a repository. At this point we're correct.
55 # Let's try merging AC with BC now, here we discover a bug.