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…)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1845
24d8053020a2 constants: extract key for extra into a constant
Augie Fackler <augie@google.com>
parents:
diff changeset
     1
extrakey = 'topic'
2649
cf930521f14d topics: add some noise to rewrittent changeset to prevent hash cycle
Pulkit Goyal <7895pulkit@gmail.com>
parents: 1901
diff changeset
     2
changekey = '_rewrite_noise'