X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=strategy.tex;h=97c41b9a9b0a1e55ea45e085746a3909f08b317b;hb=13a217e73c1ab13c7899dd2c1be7cbc909fed331;hp=1e8ee0156f5846bec3d54e4852396c703c432564;hpb=eb02216495da42d7de57d8ecf16b62dd50d2baf2;p=topbloke-formulae.git diff --git a/strategy.tex b/strategy.tex index 1e8ee01..97c41b9 100644 --- a/strategy.tex +++ b/strategy.tex @@ -74,7 +74,7 @@ All the input commits to the update algorithm. (See below.) The topmost patch which we are trying to update. This and all of its dependencies will be updated. -\item[ $h : \pc^{+/-} \mapsto \set H_{\pc^{+/-}}$ ] +\item[ $h : \pc^{+/-} \mapsto \set H^{\pc^{+/-}}$ ] Function for getting the existing heads $\set H$ of the branch $\pc^{+/-}$. These are the heads which will be merged and used in this update. This will include the current local and remote git refs, as desired. @@ -104,8 +104,34 @@ during the update algorithm). \item[ $\tipcn, \tipcy$ ] The new tips of the git branches $\pcn$ and $\pcy$, containing -all the correct commits (and the correct other patches), as -generated by the Traversal phase of the update algorithm. +all the appropriate commits (and the appropriate other patches), +as generated by the Traversal phase of the update algorithm. \end{basedescript} +\stdsection{ WIP tip satisfaction, reachable commits } + +Set of all reachable commits, O. + +A reachable commit is one we might refer to explicitly in any of these +algorithms, and any ancestor of such a commit. We explicitly +enumerate all of the input commits (U), so the reachable commits are +originally the input commits and their ancestors. Each commit we +generate will have reachable commits as ancestors so when we generate +a new commit we only add that new commit to O. + +So O varies over time as we generate more commits. We write O_py for +the set of reachable commits at the point where we have just generated +T_py, ie jusjt after Merge-Tip(P). + +We preserve/ensure + Tip_Py >= pendsof( O_py, Py ) +(Tip_py is computed during traversal for the patch P) + +We ensure this property by: + - we do not generate any commits for py other than + during Merge-Tip + - so at the start of Merge-Tip pendsof (O, py) = pendsof (U, py) + - Merge-Tip itself wip wip wip + +