diff .hgsigs @ 51818:23116aefe786 stable

merge: sort filemap only if requested by the caller The name `sorted` refers to a built-in function, which is always true, so the else branch of this if statement was dead code. Because, with this fix, the function can iterate over the dict items while yielding values, the dict should not change size while the generator is running. Because of that, it is required to re-introduce code that makes a caller copy the filemap before modification, which was removed in 3c783ff08d40cbaf36eb27ffe1d296718c0f1d77 (that changeset also introduced the filemap() method including the bug that’s being fixed by this changeset).
author Manuel Jacob <me@manueljacob.de>
date Wed, 07 Aug 2024 22:05:36 +0200
parents a431b41299fc
children f730ee8a7ae0
line wrap: on
line diff