Mercurial > public > mercurial-scm > evolve
diff hgext3rd/topic/topicmap.py @ 6333:f4ffe1e67a9b
topic: move compatibility for branchcache._entries to topic/compat.py
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 12 Nov 2022 15:47:57 +0400 |
parents | caf302fb8f4d |
children | 453861da6922 |
line wrap: on
line diff
--- a/hgext3rd/topic/topicmap.py Sun Nov 20 17:47:13 2022 +0400 +++ b/hgext3rd/topic/topicmap.py Sat Nov 12 15:47:57 2022 +0400 @@ -168,12 +168,8 @@ def copy(self): """return an deep copy of the branchcache object""" - if util.safehasattr(self, '_entries'): - _entries = self._entries - else: - # hg <= 4.9 (624d6683c705+b137a6793c51) - _entries = self - args = (_entries, self.tipnode, self.tiprev, self.filteredhash, + entries = compat.bcentries(self) + args = (entries, self.tipnode, self.tiprev, self.filteredhash, self._closednodes) if util.safehasattr(self, '_repo'): # hg <= 5.7 (6266d19556ad)