mercurial/branchmap.py
changeset 51468 4188a0570ba1
parent 51465 9007387a227c
child 51486 0ddc34330d41
--- a/mercurial/branchmap.py	Mon Feb 26 15:26:08 2024 +0100
+++ b/mercurial/branchmap.py	Thu Mar 07 11:04:34 2024 +0100
@@ -168,7 +168,10 @@
         unfi = repo.unfiltered()
         for filtername, cache in self._per_filter.items():
             if cache._delayed:
-                repo = unfi.filtered(filtername)
+                if filtername is None:
+                    repo = unfi
+                else:
+                    repo = unfi.filtered(filtername)
                 cache.write(repo)