<div dir="ltr"><div><div><div><div><div><div><div>A partial commit is useful when you have several unrelated changes in the same pakage and you don&#39;t want to commit them all.<br></div>A clean and costly process would be to<br>
- save all changes locally (file out, local package-cache, whatever...)<br></div>- download a fresh and clean up to date image<br></div>- selectively re-install some of the changes in clean image<br></div>- test<br></div>
- commit<br></div>An alternative is to partially commit to a local package from the dirty image, and load from clean.<br></div>A quick and dirty process is to directly and partially commit to inbox or trunk from the dirty image (more dangerous, but for a few lines of changes it rocks).<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/3 Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is a partial commit and when/why do I want to do it?<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, May 3, 2013 at 6:42 AM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt; wrote:<br>
&gt; Good point, I&#39;m not sure. Colin? If this is a problem we should<br>
&gt; disallow/warn about partial commits from merges.<br>
&gt;<br>
&gt; - Bert -<br>
&gt;<br>
&gt; On 2013-05-03, at 13:23, Nicolas Cellier<br>
&gt; &lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; A possible side effect with this scenario:<br>
&gt;<br>
&gt; 1) I merge load trunk package version X<br>
&gt; 2) I merge a third-party version Z,<br>
&gt; 3) I partially publish version Y without the Z changes.<br>
&gt;<br>
&gt; Will Z figure in the Y ancestors?<br>
&gt; If so, that might be a problem when later trying to merge Z again in another<br>
&gt; image...<br>
&gt;<br>
&gt; Nicolas<br>
&gt;<br>
&gt;<br>
&gt; 2013/5/3 Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 2013-05-02, at 20:49, Frank Shearar &lt;<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; On 2 May 2013 19:19, Chris Muller &lt;<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; Hmph -- since you were asking for consensus on something, it would be<br>
&gt;&gt; &gt;&gt; nice to have a little more time to respond -- as I did in &lt; 24 hours,<br>
&gt;&gt; &gt;&gt; but still apparently too late.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; didn&#39;t get much discussion.  ay we please have more time<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Sure. In my defence, this was seriously getting in my way... but I<br>
&gt;&gt; &gt; guess the response to that is &quot;well keep the change in your image&quot;.<br>
&gt;&gt; &gt; Ah, well.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; frank<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Maybe you should try my &quot;allow partial commits&quot; Monticello mod<br>
&gt;&gt; (Monticello-bf.540 in inbox). I have been using it for months now and it<br>
&gt;&gt; works really well. Back in January I got a few +1s but Chris was opposed so<br>
&gt;&gt; I did not put it into trunk, yet. I have not found the time to add the &quot;do<br>
&gt;&gt; yet another snapshot when pressing save&quot; Chris wanted because in my workflow<br>
&gt;&gt; it&#39;s not needed. But perhaps it&#39;s good enough? For me it certainly was a<br>
&gt;&gt; relief keeping some changes to my image while still being able to commit<br>
&gt;&gt; &quot;clean&quot; packages to trunk.<br>
&gt;&gt;<br>
&gt;&gt; - Bert -<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>