Commit 7260181
committed
Remove usage of the sequence number from target files
Currently there is an attribute 'sequenceNumber' that should change
"whenever something in the target that affects the set of features and
bundles that would be resolved" but effectively this never worked very
well:
- A sequence number is not mandatory
- Target files are often edited by humans and it is easy to forget to
increment those
- Updating it was never public API so only with some operations it was
possible to implicitly change that
- it is only used to check if a P2 profile is up-to-date where the
sequence number is a very bad indication as actually even things outside
the target can influence it
- even if the sequence number does not matches, P2TargetUtils performed
some other checks if maybe the profile has not changed, so P2TargetUtils
is already aware of changes without it
To summarize if the sequence number did not changed the profile is
considered clean (what might be wrong), if it changed we ignore it and
check our self if it changed.
To prevent us from strange errors and uncertainties, this now completely
removes the 'sequenceNumber' and corresponding code leaving the
responsibility to detect something changes completely to the
implementation of the target location.1 parent cb0d691 commit 7260181
File tree
10 files changed
+7
-80
lines changed- ui
- org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target
- org.eclipse.pde.genericeditor.extension.tests/src/org/eclipse/pde/genericeditor/extension/tests
- org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension
- autocomplete
- processors
- model
- reconciler/presentation
- org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/target
10 files changed
+7
-80
lines changedLines changed: 0 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
213 | | - | |
214 | 211 | | |
215 | 212 | | |
216 | 213 | | |
| |||
224 | 221 | | |
225 | 222 | | |
226 | 223 | | |
227 | | - | |
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
| |||
250 | 246 | | |
251 | 247 | | |
252 | 248 | | |
253 | | - | |
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
| |||
296 | 291 | | |
297 | 292 | | |
298 | 293 | | |
299 | | - | |
300 | 294 | | |
301 | 295 | | |
302 | 296 | | |
| |||
310 | 304 | | |
311 | 305 | | |
312 | 306 | | |
313 | | - | |
314 | 307 | | |
315 | 308 | | |
316 | 309 | | |
| |||
770 | 763 | | |
771 | 764 | | |
772 | 765 | | |
773 | | - | |
774 | 766 | | |
775 | 767 | | |
776 | 768 | | |
| |||
819 | 811 | | |
820 | 812 | | |
821 | 813 | | |
822 | | - | |
823 | 814 | | |
824 | 815 | | |
825 | 816 | | |
| |||
1106 | 1097 | | |
1107 | 1098 | | |
1108 | 1099 | | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | 1100 | | |
1130 | 1101 | | |
1131 | 1102 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
Lines changed: 0 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | 485 | | |
519 | 486 | | |
520 | 487 | | |
| |||
684 | 651 | | |
685 | 652 | | |
686 | 653 | | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | 654 | | |
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| |||
0 commit comments