[PATCH 2 of 2 V3] amend: do a bare kill of temporary changeset

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Oct 18 14:11:05 CDT 2012

# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1350575674 -7200
# Node ID 9de9040ac98400a85b69c8042652fa4a42dbf469
# Parent  7ec488b147963f80344dd4431f74faac66e68ef0
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
@@ -1742,7 +1742,7 @@
                 new = repo[newid]
                 obs = [(old, (new,))]
                 if node:
-                    obs.append((ctx, (new,)))
+                    obs.append((ctx, ()))
                 obsolete.createmarkers(repo, obs)

More information about the Mercurial-devel mailing list