<div class="gmail_quote">On Wed, Mar 14, 2012 at 13:38, Mark F. Adams <span dir="ltr">&lt;<a href="mailto:mark.adams@columbia.edu">mark.adams@columbia.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Damn, I&#39;m not preallocating the graph perfectly for unsymmetric matrices and PETSc now dies on this.<div><br></div><div>I have a fix but I committed it with other changes that I do not want to commit.  The changes are all in one file so I should be able to just commit this file.</div>
<div><br></div><div>Anyone know how to delete a commit?</div></div></blockquote><div><br></div><div>Be careful to make a backup.</div><div><br></div><div>Edit your ~/.hgrc</div><div><br></div><div>[extensions]</div><div>mq =</div>
<div>crecord = ~/src/crecord/crecord</div><div><br></div><div>For partial commits, I use this kinda clunky non-standard extension because I don&#39;t know of anything better for Hg.</div><div><br></div><div>hg clone <a href="https://bitbucket.org/edgimar/crecord">https://bitbucket.org/edgimar/crecord</a> ~/src/crecord<br>
</div><div><br></div><div>Then you can &quot;hg crecord&quot; which will let you select specific lines to commit.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><br></div><div>I&#39;ve tried:</div><div><br></div><div><div>~/Codes/petsc-dev/src/ksp/pc/impls/gamg&gt;hg strip 22487:26ffb9eef17f</div><div>hg: unknown command &#39;strip&#39;</div>
<div>&#39;strip&#39; is provided by the following extension:</div><div><br></div><div>    mq  manage a stack of patches</div><div><br></div><div>use &quot;hg help extensions&quot; for information on enabling extensions</div>
</div><div><br></div><div>But have not figured out how to load extensions.</div></div></blockquote></div><br>