[PATCH 1 of 2] amend: add noise in extra to avoid creating obsolescence cycle (issue3664)

Kevin Bullock kbullock+mercurial at ringworld.org
Thu Oct 18 18:03:40 UTC 2012


On Oct 18, 2012, at 12:34 PM, Pierre-Yves David wrote:

> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at logilab.fr>
> # Date 1350581428 -7200
> # Node ID 455dbbdf1df8694254850cf9c96827f8b3ff2f61
> # Parent  a1c4b21fc1b206f5cf386a8d9d5b5882aaa6807f
> 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-from' extra key.

Commit message apparently didn't get updated with the code below.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock




More information about the Mercurial-devel mailing list