[PATCH 3 of 3 V4] amend: do a bare kill of temporary changeset

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Oct 18 15:16:10 CDT 2012


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1350575674 -7200
# Node ID ca4da995b30f1d636228a56f8362451cc59b64b6
# Parent  9ca8688208142c8e1b3922f4083b32549727af3e
amend: do a bare kill of temporary changeset

Before this changeset the temporary changeset created by amend was made a
precursors on the amend result. This add unnecessary complexity to the
obsolescence graph. This temporary commit will probably disappear in the future.
It is an unwanted byproduct of amend that nobody cares about.

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -1744,7 +1744,7 @@
                 new = repo[newid]
                 obs = [(old, (new,))]
                 if node:
-                    obs.append((ctx, (new,)))
+                    obs.append((ctx, ()))
 
                 obsolete.createmarkers(repo, obs)
             tr.close()


More information about the Mercurial-devel mailing list