Mercurial > hg
diff tests/test-wireproto-clientreactor.py @ 45348:490607efc992
merge: remove emptyactions() and use collections.defaultdict(list) instead
emptyactions() used to return a dict which was populated and passed into
applyupdates(). However, with recent changes, we no longer pass a plain dict,
instead we pass the mergeresult object.
There was only one usage of emptyactions and that too inside mergeresult object.
That usage is replaced with collections.defaultdict(list) instead.
Not sure why we were not using collections.defaultdict(list) from the beginning.
Differential Revision: https://phab.mercurial-scm.org/D8903
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 06 Aug 2020 13:27:38 +0530 |
parents | 2372284d9457 |
children | 89a2afe31e82 |