X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=merge.tex;h=ba7f0f84962b25b5da791f7508388de2c7e87124;hp=881dd249cce6b73a0a97e83b6173383af844c3df;hb=refs%2Fheads%2Fmaster;hpb=28ed5bb07153a37a5e48c9bfa7498eb48b946abf diff --git a/merge.tex b/merge.tex index 881dd24..ba7f0f8 100644 --- a/merge.tex +++ b/merge.tex @@ -35,7 +35,7 @@ satisfied; in particular, provided that $L \ge \baseof{R}$. \lor R \in \foreign \lor - R \in \pqy + ( R \in \pqy \land \pq \neq \p ) \big] }\] \[ \eqn{ Merge Acyclic }{ @@ -59,28 +59,28 @@ satisfied; in particular, provided that $L \ge \baseof{R}$. \right] }\] \[ \eqn{ Suitable Tips }{ - \bigforall_{\p \neq \patchof{L}, \; C \haspatch \p} + \bigforall_{\p \patchisin C, \; \py \neq \patchof{L}} \bigexists_T \pendsof{J}{\py} = \{ T \} \land \forall_{E \in \pendsof{K}{\py}} T \ge E , \text{where} \{J,K\} = \{L,R\} }\] -\[ \eqn{ Foreign Merges }{ +\[ \eqn{ Foreign Merge }{ \isforeign{L} \implies \isforeign{R} }\] \subsection{Non-Topbloke merges} We require both $\isforeign{L}$ and $\isforeign{R}$ -(Foreign Merges, above). +(Foreign Merge, above). I.e. not only is it forbidden to merge into a Topbloke-controlled branch without Topbloke's assistance, it is also forbidden to merge any Topbloke-controlled branch into any plain git branch. Given those conditions, Tip Merge and Merge Acyclic do not apply. -By Foreign Contents of $L$, $\isforeign{M}$ as well. -So by Foreign Contents for any $A \in \{L,M,R\}$, +By Foreign Ancestry of $L$, $\isforeign{M}$ as well. +So by Foreign Ancestry for any $A \in \{L,M,R\}$, $\forall_{\p, D \in \py} D \not\le A$ so $\pendsof{A}{\py} = \{ \}$ and the RHS of both Merge Ends conditions are satisifed. @@ -131,6 +131,14 @@ $\qed$ \subsection{Coherence and Patch Inclusion} +$C$ satisfies +\gathbegin + C \haspatch \p \lor C \nothaspatch \p +\gathnext +C \haspatch \p \equiv + \stmtmergeof{L \haspatch \p}{M \haspatch \p}{R \haspatch \p} +\end{gather} +which (given Coherence of $L$,$M$,$R$) is equivalent to $$ \begin{cases} L \nothaspatch \p \land R \nothaspatch \p : & C \nothaspatch \p \\ @@ -146,7 +154,7 @@ $$ $D \not\isin L \land D \not\isin R$. $C \not\in \py$ (otherwise $L \in \py$ ie $L \haspatch \p$ by Tip Own Contents for $L$). So $D \neq C$. -Applying \commitmergename gives $D \not\isin C$ i.e. $C \nothaspatch \p$. +Applying \commitmergename\ gives $D \not\isin C$ i.e. $C \nothaspatch \p$. OK. \subsubsection{For $L \haspatch \p, R \haspatch \p$:} @@ -320,11 +328,11 @@ OK $\qed$ -\subsection{Foreign Contents} +\subsection{Foreign Ancestry} Only relevant if $\isforeign{L}$, in which case -$\isforeign{C}$ and by Foreign Merges $\isforeign{R}$, -so Totally Foreign Contents applies. $\qed$ +$\isforeign{C}$ and by Foreign Merge $\isforeign{R}$, +so Totally Foreign Ancestry applies. $\qed$ \subsection{Bases' Children} @@ -344,5 +352,6 @@ $R$. Other possibilities for $L \in \pn$ are excluded by Base Merge. -If $L \in \foreign$: not applicable for $L$; nor for $R$, by Foreign Merges. +If $L \in \foreign$: not applicable for $L$; nor for $R$, by Foreign Merge. +$\qed$