X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=strategy.tex;h=2f676bb7808acc38e7e6033cf437d260fd6a178f;hb=f8b525275e017d1a5e77cb31b033d54a52e19e2c;hp=833f5bdfe06fe6c2846815c66dcde91002d674be;hpb=29dc9ebb649e71ccdee72c704377fbe623705404;p=topbloke-formulae.git diff --git a/strategy.tex b/strategy.tex index 833f5bd..2f676bb 100644 --- a/strategy.tex +++ b/strategy.tex @@ -54,6 +54,13 @@ $\bigforall_{E \in \pendsof{\set X}{\p}} E \le T$ $\bigcup_{\p \in \allpatches} \set H^{\pn} \cup \set H^{\py}$. All the input commits to the update algorithm. (See below.) +\item[ $\set H^{\pc^{_=/-}}$ ] + +The existing head commit(s) $\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. +Obtained from the function $h$ (see below). + %\item[ $\set E_{\pc}$ ] %$ \bigcup_i \pendsof{S_{\pc,i}}{\pc} $. %All the ends of $\pc$ in the sources. @@ -76,8 +83,12 @@ all of its dependencies will be updated. \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. + +\item[ $w : \pc^{+/-} \mapsto \set W_0^{\pc^{+/-}}$ ] + +Function for getting the existing local head of the branch +$\pc^{+/-}$. I.e., the current value of the branch ref for $\pc^{+/-}$. +$W_0^{\pc^{+/-}} \in \set H$. \item[ $g : \pc, \Gamma \mapsto \Gamma'$ ] Function to allow explicit adjustment of the direct dependencies @@ -107,53 +118,20 @@ The new tips of the git branches $\pcn$ and $\pcy$, containing 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. +\item[ $\allreach$ ] +The set of all reachable commits. 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). And each commit we generate -will be descended from zero or more of these. - -Naturally this set varies over time as we generate more commits. We -write O_pyn for the set of reachable commits at the point where we -have just generated T_pyn. - -We preserve/ensure - Tip_Pyn >= pendsof( O_pyn, Pyn ) -(Tip_pyn is computed during traversal for the patch p) - -We ensure this property by: - - we do not generate any commits for pyn other than - during traversal for pyn - - so at the start of traversal pendsof ( O, pyn) = pendsof (U, pyn) - - the traversal steps will takes those pends - - - during traversal for the patch set pyn - pendsof +enumerate all of the input commits ($\allsrcs$), so the reachable +commits are originally the input commits and their ancestors. - - arranging that during traversal for the patch set pyn - -, we firstly - compute a tip_pyn which is >= pendsof(O) as follows: - there is a set of relevant ends - pendsof(U, +$\allreach$ varies over time as we generate more commits. Each +commit we generate will have only reachable commits as ancestors, so +generating a new commit (only) adds that new commit to $\allreach$. - we initially set T - - by virtue of it being >= pendsof(U) \cup - all lower tip_qyn - - - -We do this by: - - firstly, Tip_pyn is only valid af - - -Set of all reachable commits in a particular patch set. - This consists of - - input commits - - +\item[ $\allreachof{\py}$ ] +The set of reachable commits at the point where we have just generated +$\tippy$, i.e. just after $\alg{Merge-Tip}(\p)$. +\end{basedescript}