Patchwork D6204: branchmap: dynamically resolve type of branchcache class

login
register
mail settings
Submitter phabricator
Date April 13, 2019, 1:15 a.m.
Message ID <2aa0cd2ffaeaa603bf3cf41e0a25d098@localhost.localdomain>
Download mbox | patch
Permalink /patch/39579/
State Not Applicable
Headers show

Comments

phabricator - April 13, 2019, 1:15 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf0fa0fc4900a: branchmap: dynamically resolve type of branchcache class (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6204?vs=14673&id=14724

REVISION DETAIL
  https://phab.mercurial-scm.org/D6204

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -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)