changeset 6560:abbba073aa88

topic: check for devel.randomseed existence correctly Judging by the block of code above this patch, we want to check for presence of the same config option as we then add. So in this case, it would be devel.randomseed, and not just devel.random. I couldn't find any mention of devel.random in evolve, topic or core, which makes me think it was just a typo.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 29 Sep 2023 16:36:32 -0300
parents b56489871a56
children d08590ce067d
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Wed Oct 04 14:27:00 2023 -0300
+++ b/hgext3rd/topic/__init__.py	Fri Sep 29 16:36:32 2023 -0300
@@ -304,7 +304,7 @@
                   default=None,
         )
     if (b'devel' not in ui._knownconfig
-            or not ui._knownconfig[b'devel'].get(b'random')):
+            or not ui._knownconfig[b'devel'].get(b'randomseed')):
         extraitem(b'devel', b'randomseed',
                   default=None,
         )