5 # We'd just use `diff -x _darcs -r' if -x was portable.
7 { find $1 -type f
; find $2 -type f
; } |
8 sed -e '/.*\/_darcs\//d' -e 's;^[^/]*;;' |
grep -v darcs.tix |
sort |
uniq |
11 diff -c $1$part $2$part
19 for i
in `darcs show files --no-files --no-pending`; do
20 echo mkdir
-p pristine
/$i;
23 for i
in `darcs show files --no-directories --no-pending`; do
24 echo darcs show contents
$i ">" pristine
/$i;
25 darcs show contents
$i > pristine
/$i;
32 rm -rf temp1 temp2 temp3 temp4 temp5
38 darcs rec
-m t1
-a -A tester
40 darcs what
-s |
grep -v No\ changes
41 darcs what
-l |
grep -v No\ changes
42 darcs what
-sl |
grep -v No\ changes
52 darcs get
--hashed temp1 temp3
55 cp _darcs
/hashed_inventory inv
57 diff -c inv _darcs
/hashed_inventory
61 cat temp
3/pristine
/foo
64 diff -rc temp
1/pristine temp
3/pristine
65 diff -rc temp
2/pristine temp
3/pristine
68 darcs record
-a -A tester
-m t2
69 darcs push ..
/temp2
-a
70 darcs push ..
/temp3
-a
82 diff -rc temp
1/pristine temp
3/pristine
83 diff -rc temp
2/pristine temp
3/pristine
87 darcs record
-a -A tester
-m t3
99 diff -rc temp
1/pristine temp
3/pristine
100 diff -rc temp
2/pristine temp
3/pristine
103 darcs put
--hashed ..
/temp4
110 diff -rc temp
2/pristine temp
4/pristine
113 darcs tag
-A tagger
-m atag
117 darcs changes |
grep t1
122 darcs add foobarpatch
123 darcs record
-a -A silly
-m foobarpatch
127 darcs pull
-a ..
/temp1
129 darcs optimize
--reorder-patches
131 grep 'Starting with inventory' _darcs
/hashed_inventory
135 darcs pull
-a ..
/temp3
138 diff -c temp
1/_darcs
/hashed_inventory temp
3/_darcs
/hashed_inventory
141 darcs pull
-p foobarpatch
-a ..
/temp3
142 darcs pull
-a ..
/temp1
143 darcs optimize
--reorder
148 diff temp
1/_darcs
/hashed_inventory temp
4/_darcs
/hashed_inventory
151 darcs get
--old-fashioned temp1 temp3
153 rm -rf "$HOME"/.darcs
/sources
154 echo cache
:"$HOME"/.darcs
/cache
> "$HOME"/.darcs
/sources
155 darcs get
--hashed temp3 temp5
157 # check that sources directory was created:
158 cd "$HOME"/.darcs
/sources
&& cd -
160 darcs get temp1 temp5
--hashed --old-fashioned
162 darcs obliterate
--last 3 -a
163 darcs pull ..
/temp1
-a
164 darcs obliterate
--last 3 -a
165 darcs pull ..
/temp2
-a
167 darcs obliterate
--last 3 -a
168 darcs pull ..
/temp3
-a
169 darcs obliterate
--last 3 -a
170 darcs pull ..
/temp4
-a
174 darcs obliterate
--last 3 -a
175 darcs pull ..
/temp5
-a
179 darcs obliterate
--last 3 -a
180 darcs pull ..
/temp5
-a
184 darcs obliterate
--last 3 -a
185 darcs pull ..
/temp5
-a
189 darcs obliterate
--last 3 -a
190 darcs pull ..
/temp5
-a
193 rm -rf temp1 temp2 temp3 temp4 temp5