mercurial/branchmap.py
changeset 42111 f0fa0fc4900a
parent 42007 b5511845f9d5
child 42112 29c22496dd97
--- a/mercurial/branchmap.py	Fri Apr 12 09:41:08 2019 -0700
+++ b/mercurial/branchmap.py	Wed Mar 27 21:33:04 2019 +0300
@@ -305,7 +305,7 @@
 
     def copy(self):
         """return an deep copy of the branchcache object"""
-        return branchcache(
+        return type(self)(
             self._entries, self.tipnode, self.tiprev, self.filteredhash,
             self._closednodes)