amend: do a bare kill of temporary changeset
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 18 Oct 2012 17:54:34 +0200
changeset 17812 578fcc22b469
parent 17811 a8aba2921456
child 17813 813db1dccc05
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.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Oct 18 22:12:15 2012 +0200
+++ b/mercurial/cmdutil.py	Thu Oct 18 17:54:34 2012 +0200
@@ -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()