hgext3rd/topic/constants.py
author Pulkit Goyal <7895pulkit@gmail.com>
Wed, 21 Jun 2017 07:32:11 +0530
changeset 2649 cf930521f14d
parent 1901 85390446f8c1
child 4814 48b30ff742cb
permissions -rw-r--r--
topics: add some noise to rewrittent changeset to prevent hash cycle If we have a changeset with topic `x`, we change it's topic to `y`, fine. When we change it's topic back again to `x`, we get the hash of the the obsoleted changeset which had the topic `x` initially. The same happens for few more cases like clearing the topic of a changeset which initially had no topic. This approach is influenced from cmdutil.amend and other commands (rebase, histedit, etc…)

extrakey = 'topic'
changekey = '_rewrite_noise'