3 # This test script is in the public domain.
7 rm -rf temp1 temp2 temp3 temp4 temp5
22 darcs record
-a -m addfoo
30 darcs record
-a --ignore-times -m "$2"
34 chgrec
's/line2/line2\nline2.1\nline2.2/' inssub2
35 chgrec
's/line4/Line 4/' Line4
37 darcs changes |
grep ' \*'
38 echo done with changes on temp1
> /dev
/null
45 chgrec
's/line1/line0\nline1/' line0
46 chgrec
's/Line 4/LINE FOUR/' LINE4
47 chgrec
's/line7/line7\nLastLine/' LastLine
48 chgrec
's/LINE FOUR/LINE FOUR\nline4.1/' line4.1
50 darcs changes |
grep ' \*'
51 echo done with changes on temp1
> /dev
/null
54 darcs pull
-p LastLine
-av
55 chgrec
's/line1$/FirstLine/' FirstLine
59 darcs changes |
grep ' \*'
60 echo done with changes on temp4
> /dev
/null
62 darcs pull ..
/temp1
--dry-run |
grep ' \*'
63 darcs pull ..
/temp1
--dry-run |
grep ' \*' > p1.out
74 darcs pull ..
/temp1
--dry-run --complement |
grep ' \*' > p2.out
77 darcs pull
--dry-run --complement ..
/temp1 ..
/temp2 |
grep ' \*' > p3.out
84 darcs pull
--dry-run --complement ..
/temp1 ..
/temp3 |
grep ' \*' > p4.out
90 darcs pull
--dry-run --complement ..
/temp1 ..
/temp2 ..
/temp3 |
grep ' \*' > p5.out
93 darcs pull
--dry-run --complement ..
/temp1 ..
/temp2 ..
/temp3 ..
/temp2 ..
/temp2 ..
/temp3 ..
/temp3 ..
/temp2 |
grep ' \*' > p6.out
96 darcs pull
--dry-run --complement ..
/temp3 ..
/temp2 |
grep ' \*' > p7.out
101 darcs pull
--dry-run --complement ..
/temp2 ..
/temp3
> p8.out
102 grep "No remote changes to pull in!" p8.out
104 # because duplicates are stripped before performing action,
105 # this is the same as: darcs pull ../temp1
106 darcs pull
--dry-run --complement ..
/temp1 ..
/temp1
> fooout
108 grep ' \*' fooout
> p9.out
111 # so the "null" pull must be tested this way:
112 darcs get ..
/temp1 ..
/temp5
113 darcs pull
--dry-run --complement ..
/temp1 ..
/temp5
> p9.out
114 grep "No remote changes to pull in!" p9.out
116 darcs pull
-av --complement ..
/temp1 ..
/temp3
120 rm -rf temp1 temp2 temp3 temp4 temp5