changeset 51771:1c28d9fdcd08

manifest: use explicit None checking in `_loadlazy` This help pytype to understand what is going on with `v` type.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Aug 2024 10:12:37 +0200
parents 3be39e36732a
children 8e1b28687704
files mercurial/manifest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.py	Mon Aug 05 10:11:51 2024 +0200
+++ b/mercurial/manifest.py	Mon Aug 05 10:12:37 2024 +0200
@@ -842,7 +842,7 @@
 
     def _loadlazy(self, d):
         v = self._lazydirs.get(d)
-        if v:
+        if v is not None:
             node, readsubtree, docopy = v
             if docopy:
                 self._dirs[d] = readsubtree(self._subpath(d), node).copy()