Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
17811:a8aba2921456 | 17812:578fcc22b469 |
---|---|
1742 if obsolete._enabled and newid != old.node(): | 1742 if obsolete._enabled and newid != old.node(): |
1743 # mark the new changeset as successor of the rewritten one | 1743 # mark the new changeset as successor of the rewritten one |
1744 new = repo[newid] | 1744 new = repo[newid] |
1745 obs = [(old, (new,))] | 1745 obs = [(old, (new,))] |
1746 if node: | 1746 if node: |
1747 obs.append((ctx, (new,))) | 1747 obs.append((ctx, ())) |
1748 | 1748 |
1749 obsolete.createmarkers(repo, obs) | 1749 obsolete.createmarkers(repo, obs) |
1750 tr.close() | 1750 tr.close() |
1751 finally: | 1751 finally: |
1752 tr.release() | 1752 tr.release() |