Mercurial > hg
comparison mercurial/repository.py @ 42028:0cc9d7918754
discovery: prevent deleting items from a dictionary
Removing elements from Python dictionary is expensive. So let's prevent adding
them instead.
I added a newline to make code look a bit better.
Differential Revision: https://phab.mercurial-scm.org/D6146
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sun, 17 Mar 2019 18:43:27 +0300 |
parents | a9b609fbe39c |
children | 69921d02daaf |
comparison
equal
deleted
inserted
replaced
42027:d36a7da96a5a | 42028:0cc9d7918754 |
---|