# HG changeset patch # User Anton Shestakov # Date 1710357733 10800 # Node ID a5d8f261b71674cb5d0833bb605049fe073a966a # Parent e5b28637f4cacf73ce37014016fc505fd6f8c53a obsutil: sort metadata before comparing in geteffectflag() This is probably less important now that we dropped Python 2. We do still support Python 3.6 though, and the dictionaries aren't ordered there either (that was a big change that came with 3.7). Still, maybe it's a good idea to sort metadata explicitly. diff -r e5b28637f4ca -r a5d8f261b716 mercurial/obsutil.py --- a/mercurial/obsutil.py Mon Mar 11 11:11:34 2024 +0100 +++ b/mercurial/obsutil.py Wed Mar 13 16:22:13 2024 -0300 @@ -468,10 +468,10 @@ # Check if other meta has changed changeextra = changectx.extra().items() - ctxmeta = list(filter(metanotblacklisted, changeextra)) + ctxmeta = sorted(filter(metanotblacklisted, changeextra)) sourceextra = source.extra().items() - srcmeta = list(filter(metanotblacklisted, sourceextra)) + srcmeta = sorted(filter(metanotblacklisted, sourceextra)) if ctxmeta != srcmeta: effects |= METACHANGED