diff -r bfb0ed91bb5e -r fb43853975b4 mercurial/verify.py --- a/mercurial/verify.py Tue Jun 01 09:05:53 2021 +0200 +++ b/mercurial/verify.py Tue Jun 01 09:06:33 2021 +0200 @@ -345,9 +345,8 @@ if fl == b't': if not match.visitdir(fullpath): continue - subdirnodes.setdefault(fullpath + b'/', {}).setdefault( - fn, [] - ).append(lr) + sdn = subdirnodes.setdefault(fullpath + b'/', {}) + sdn.setdefault(fn, []).append(lr) else: if not match(fullpath): continue