annotate hgext3rd/topic/constants.py @ 5012:5b5cfb9b0a0b

evolve: remove the unnecessary condition to check empty successors set I annotated the history of this "newer == [()]" condition and found that it was added in the initial stages of evolution project (more than 8 years ago) and there is no test where we get [()] as a successor set. So looks like "if not newer" is enough to check if it is empty. I also looked into obsutil.successorssets() implementation and I don't think it would give us [()] in any case.
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Thu, 12 Dec 2019 17:22:18 +0530
parents 48b30ff742cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4814
48b30ff742cb python3: use format-source to run byteify-strings in .py files
Raphaël Gomès <rgomes@octobus.net>
parents: 2649
diff changeset
1 extrakey = b'topic'
48b30ff742cb python3: use format-source to run byteify-strings in .py files
Raphaël Gomès <rgomes@octobus.net>
parents: 2649
diff changeset
2 changekey = b'_rewrite_noise'