Note that there are some explanatory texts on larger screens.

plurals
  1. POMercurial - Automatically collapsing commits based on message?
    primarykey
    data
    text
    <p>If I submit two or more commits into Mercurial with the same message, is there a way to collapse these into one change-set automatically? I assume this would have to be done in a changeset hook but I have not been able to find an automated method for this. Most examples require knowing the changeset revision numbers to collapse it manually and I'd want a way to automatically compare the previous change with the one being submitted and "merge" the two into one changeset.</p> <p>In other words:</p> <pre><code>hg commit -m "some change" hg commit -m "some change" | * 20 &lt;- "some change" | * 19 &lt;- "some change" | * .. </code></pre> <p>Could this automatically become one changeset and fold it with the last one with the same commit message?</p> <pre><code>| * 19 &lt;- "some change" | * .. </code></pre> <p>This would only collapse changes if the commit message is exactly the same and sequential.</p> <p>Because I know someone will try to point to these again... I'm not looking for these extensions, but an automatic method that does not require knowing the IDs or revisions.</p> <p><a href="http://mercurial.selenic.com/wiki/ConcatenatingChangesets" rel="nofollow">ConcatenatingChangesets</a></p> <p><a href="http://mercurial.selenic.com/wiki/CollapseExtension" rel="nofollow">CollapseExtension</a></p> <p><a href="http://mercurial.selenic.com/wiki/HisteditExtension" rel="nofollow">HisteditExtension</a></p> <hr> <p>Would this be possible if I 'tag'ged the previous commit? Could you combine your next commit into a tagged commit?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload