# HG changeset patch # User Pierre-Yves David # Date 1350591135 -7200 # Node ID c4e68bf38b1a3ce7c6f6eb1ace0bf7ce15b2921b # Parent 446f29d6074926cd4d7f3f6a9502bf897f1470fc amend: add noise in extra to avoid creating obsolescence cycle (issue3664) Obsolescence cycle are bad and should be avoided as much as possible. The current amend implemented touch changeset meta data as few as possible. This make is easy for amend to result in the same node than a precursors. We add some deterministic noise in extra to avoid this. In practice, the hex of the amended changeset is stored in 'amend_source' extra key. [ original upstream message ] diff -r 446f29d60749 -r c4e68bf38b1a tests/test-keyword.t --- a/tests/test-keyword.t Tue Oct 16 11:43:15 2012 -0700 +++ b/tests/test-keyword.t Thu Oct 18 22:12:15 2012 +0200 @@ -509,9 +509,9 @@ $ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords overwriting a expanding keywords $ hg -q id - 577e60613a88 + 67d8c481a6be $ head -1 a - expand $Id: a,v 577e60613a88 1970/01/01 00:00:15 test $ + expand $Id: a,v 67d8c481a6be 1970/01/01 00:00:15 test $ $ hg -q strip -n tip