changeset 50928 | d718eddf01d9 |
parent 50723 | bfbd84c57bda |
child 51690 | 493034cc3265 |
--- a/mercurial/dirstatemap.py Thu Dec 08 15:33:19 2022 +0100 +++ b/mercurial/dirstatemap.py Thu Aug 31 23:56:15 2023 +0200 @@ -377,7 +377,7 @@ return # TODO: adjust this estimate for dirstate-v2 - if util.safehasattr(parsers, 'dict_new_presized'): + if hasattr(parsers, 'dict_new_presized'): # Make an estimate of the number of files in the dirstate based on # its size. This trades wasting some memory for avoiding costly # resizes. Each entry have a prefix of 17 bytes followed by one or