diff mercurial/cmdutil.py @ 17812:578fcc22b469

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.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 18 Oct 2012 17:54:34 +0200
parents a8aba2921456
children 034e55bbf7c0
line wrap: on
line diff
--- 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()