mercurial/localrepo.py
changeset 45464 4a0ccbecbaa6
parent 45433 324ad3e7ef41
child 45483 d252f51ab032
--- a/mercurial/localrepo.py	Thu Jul 23 20:23:44 2020 +0200
+++ b/mercurial/localrepo.py	Fri Sep 11 15:52:06 2020 -0700
@@ -1570,7 +1570,7 @@
     def _quick_access_changeid_wc(self):
         # also fast path access to the working copy parents
         # however, only do it for filter that ensure wc is visible.
-        quick = {}
+        quick = self._quick_access_changeid_null.copy()
         cl = self.unfiltered().changelog
         for node in self.dirstate.parents():
             if node == nullid:
@@ -1609,11 +1609,9 @@
         This contains a list of symbol we can recognise right away without
         further processing.
         """
-        mapping = self._quick_access_changeid_null
         if self.filtername in repoview.filter_has_wc:
-            mapping = mapping.copy()
-            mapping.update(self._quick_access_changeid_wc)
-        return mapping
+            return self._quick_access_changeid_wc
+        return self._quick_access_changeid_null
 
     def __getitem__(self, changeid):
         # dealing with special cases