Mercurial > evolve
annotate docs/troubles-handling.rst @ 5493:1a7bb3ab027e
unstable-list: add basic section for phase-divergence
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Mon, 17 Aug 2020 16:44:13 +0530 |
parents | 76963e896ea6 |
children | ac7cb1b67c9b |
rev | line source |
---|---|
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
1 .. Copyright 2020 Sushil Khanchi <sushilkhanchi97@gmail.com> |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
2 .. Octobus SAS <contact@octobus.net> |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
3 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
4 ----------------------------------------------------------- |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
5 Possible troubles in rewriting history and their resolution |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
6 ----------------------------------------------------------- |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 |
5483
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
8 Rewriting history, and especially rewriting draft history that have been |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
9 exchanged can lead to "unstable" situation. |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
10 |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
11 This document is intended for developer of the changeset evolution concept. It |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
12 cover through the technical aspects of each "instability" a changeset can get |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
13 into. It aims at building an exhaustive list of each cases and sub-cases and the |
5483
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
14 status of automatic resolution for these cases. |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
15 |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
16 Public changeset are part of the permanent history and are never considered |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
17 unstable. |
e82d336bf31e
unstable-list: add an introduction text
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5482
diff
changeset
|
18 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
19 Orphan |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
20 ######### |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
21 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
22 Basics |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
23 ****** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
24 |
5484
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
25 A changeset is orphan when there is at least one obsolete ancestor. |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
26 |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
27 As a resolution, we need to find a new appropriate parents for the |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
28 changeset and rebase the orphan there. |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
29 |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
30 If the parents of an orphan changeset are orphan themself, they will have to be |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
31 "stabilised" fist. |
e3302ad5ad77
unstable-list: add the basic about orphan changesets
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5483
diff
changeset
|
32 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
33 Cause of trouble |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
34 **************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
35 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
36 Orphan can appears because the user locally rewrite changeset with descendants. |
5485
457d8003e840
unstable-list: add information about when/why orphan appears
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5484
diff
changeset
|
37 In this case the orphan are created when the command run. |
457d8003e840
unstable-list: add information about when/why orphan appears
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5484
diff
changeset
|
38 |
457d8003e840
unstable-list: add information about when/why orphan appears
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5484
diff
changeset
|
39 Orphan can also happens when the users created new changeset on draft that got |
457d8003e840
unstable-list: add information about when/why orphan appears
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5484
diff
changeset
|
40 rewritten in another repository. The orphan are then "discovered" when the |
457d8003e840
unstable-list: add information about when/why orphan appears
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5484
diff
changeset
|
41 obsolescence information of the ancestors is pulled in the local repository. |
457d8003e840
unstable-list: add information about when/why orphan appears
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5484
diff
changeset
|
42 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
43 Source of Complexity |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
44 ******************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
45 |
5486
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
46 There can be different situations we need to take care of when dealing with |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
47 resolution of an orphan changeset, like: |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
48 |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
49 * parents might not be obsolete (yet) and orphan themself. They will need to be |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
50 resolved first. |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
51 * obsolete parent has conflicting rewrites (content-divergence), so there might |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
52 not be an obvious "good spot" to rebase the changeset too. |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
53 * obsolete parent could have been prune, so it has not direct successors, |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
54 * obsolete parent was split in multiple changesets. This comes with multiple |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
55 variants: |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
56 |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
57 * successors could be linear of spread across multiple branches, |
5486
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
58 * successors could have been reordered after the initial split, |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
59 * Some of the successors could have been pruned. |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
60 * the orphan changeset can be a merge and orphan may come any numbers of parents |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
61 * rebasing might lead to conflict. |
381df06460e8
unstable-list: add list the source of complexity during resolution
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5485
diff
changeset
|
62 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
63 Details of Sub cases |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
64 ******************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
65 |
5487
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
66 O-A: Linear changeset (one parent) |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
67 ================================== |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
68 |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
69 O-A1: parent has a single successors |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
70 ------------------------------------ |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
71 |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
72 |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
73 Stabilisation Strategy |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
74 """""""""""""""""""""" |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
75 |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
76 Solution is Clear. |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
77 |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
78 Relocate the orphan changeset onto the single successor of obsolete parent. |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
79 |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
80 Current Support Level |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
81 """"""""""""""""""""" |
7c543787d5c6
unstable-list: add a simple entry for the simplest orphan case
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5486
diff
changeset
|
82 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
83 Good: current implementation is expected to perform the planned stabilisation. |
5488
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
84 |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
85 O-A2: parent is pruned (no successors) |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
86 -------------------------------------- |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
87 |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
88 |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
89 Stabilisation Strategy |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
90 """""""""""""""""""""" |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
91 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
92 Find nearest "not-pruned" ancestor and treat it (or its successor, if apply) as |
5488
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
93 a resolution parent. (re-run Orphan resolution starting from these parent). |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
94 |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
95 XXX what about if they are multiple heads to that set of "not-pruned" ancestor? |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
96 Especially when they are more then 2 ? |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
97 |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
98 Current Support Level |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
99 """"""""""""""""""""" |
9920e8b4756d
unstable-list: add a entry about pruned parent
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5487
diff
changeset
|
100 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
101 Good support if there is only one head to the set. |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
102 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
103 O-A3: parent has multiple successors sets |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
104 ----------------------------------------- |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
105 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
106 |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
107 Stabilisation Strategy |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
108 """""""""""""""""""""" |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
109 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
110 Current Support Level |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
111 """"""""""""""""""""" |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
112 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
113 O-A4: parent is split into multiple successors |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
114 ---------------------------------------------- |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
115 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
116 O-A4.1: successors of parent are all one the same topological branch |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
117 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
118 |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
119 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
120 Stabilisation Strategy |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
121 """""""""""""""""""""" |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
122 |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
123 Pick highest one as resolution parent. |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
124 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
125 Current Support Level |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
126 """"""""""""""""""""" |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
127 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
128 Good: current implementation is expected to perform the planned stabilisation. |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
129 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
130 O-A4.2: parent is split into multiple topological branches (at least 2 heads) |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
131 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
132 |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
133 In this case, the destination can be ambiguous. |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
134 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
135 Stabilisation Strategy |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
136 """""""""""""""""""""" |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
137 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
138 prompt user to choose one. |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
139 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
140 (could we do better in some case?) |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
141 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
142 Current Support Level |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
143 """"""""""""""""""""" |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
144 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
145 Current implementation is expected to perform the planned stabilisation. |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
146 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
147 O-M: Parent are Merge (multiple parent) |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
148 ======================================= |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
149 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
150 O-M1: Only one parent is obsolete |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
151 --------------------------------- |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
152 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
153 XXX Simple case are probably as good as any `O-A` case. However special case are |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
154 probably ignored right now (e.g: successors of the obsolete parent is linear with |
5489
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
155 the other parent). |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
156 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
157 O-M2: both parent are obsolete |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
158 ------------------------------ |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
159 |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
160 XXX currently we evolve one after the other. |
8b7036384f77
unstable-list: more entry for orphan SPLIT ME
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5488
diff
changeset
|
161 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
162 Phase-Divergence |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
163 ################## |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
164 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
165 Basics |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
166 ****** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
167 |
5493
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
168 |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
169 It appears when a rewritten changeset got published. A phase-divergent changeset |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
170 has a public predecessor. |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
171 |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
172 To stabilise the situation, we need to analyse the changes introduced by the |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
173 phase-divergent changeset which succeeded the public changeset. And if there |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
174 are some file content changes which can be rebased on public changeset, will be |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
175 committed as a resolution changeset. |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
176 |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
177 If no file content changes and only metadata (author, parent, etc) is changed, |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
178 we prune phase-divergent changeset. |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
179 XXX: here we should probably inform about the metadata loss. |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
180 |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
181 In practice there are other corner cases where this is "not that simple". |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
182 For e.g. the obsolete changeset (which got published) was split over multiple |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
183 topological branches. |
1a7bb3ab027e
unstable-list: add basic section for phase-divergence
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5492
diff
changeset
|
184 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
185 Cause of trouble |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
186 **************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
187 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
188 Source of Complexity |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
189 ******************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
190 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
191 Details of Sub cases |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
192 ******************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
193 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
194 Content-Divergence |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
195 ################## |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
196 |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
197 Basics |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
198 ****** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
199 |
5490
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
200 |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
201 Independent rewrites of same changeset leads to content-divergence. So an |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
202 obsolete changeset have multiple "sets" of successors. And the content-divergent |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
203 changeset have some predecessors in common without the situation being the |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
204 result of a split. |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
205 |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
206 To stabilise the situation, we need to "merge" the changes introduced in each |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
207 side of the divergence and create a new changeset, that will supersede both of |
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
208 the unstable one. The merged information can be both about file content and |
5490
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
209 metadata (author, parent, etc). |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
210 |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
211 In practice there are a lot of corner case where this is "not that simple". |
8f9dd2414416
unstable-list: add basic description of content divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5489
diff
changeset
|
212 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
213 Cause of trouble |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
214 **************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
215 |
5491
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
216 XXX need details about local creation and remote creation. (revealed at pull |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
217 time). |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
218 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
219 Source of Complexity |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
220 ******************** |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
221 |
5491
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
222 |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
223 Before we perform a 3-way merge between the divergent changesets and common |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
224 predecessor as base, there are some situations we need to take care of, like: |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
225 |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
226 * if divergent changesets moved, check which side moved in which direction, |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
227 and proceed accordingly |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
228 * they moved on different unrelated branches |
5492
76963e896ea6
unstable-list: some cleanup
Sushil khanchi <sushilkhanchi97@gmail.com>
parents:
5491
diff
changeset
|
229 * divergent changeset can be orphan as well |
5491
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
230 * one side of divergence is in public phase |
1a238a9313da
unstable-list: some details about phase divergence
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5490
diff
changeset
|
231 |
5482
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
232 Details of Sub cases |
3435822cd758
doc: add the bases of a developer doc for instability
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
233 ******************** |