diff hgext3rd/topic/compat.py @ 6745:71c4b6c2bcdc

topic: drop branchmap._entries compatibility for hg 4.9
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 11 Jan 2024 15:31:13 -0300
parents 4c6d35f92469
children
line wrap: on
line diff
--- a/hgext3rd/topic/compat.py	Thu Mar 14 15:12:18 2024 -0300
+++ b/hgext3rd/topic/compat.py	Thu Jan 11 15:31:13 2024 -0300
@@ -25,13 +25,6 @@
         return branchmap.iteritems()
     # py3-transform: on
 
-def bcentries(branchcache):
-    if util.safehasattr(branchcache, '_entries'):
-        return branchcache._entries
-    else:
-        # hg <= 4.9 (624d6683c705+b137a6793c51)
-        return branchcache
-
 # nodemap.get and index.[has_node|rev|get_rev]
 # hg <= 5.2 (02802fa87b74)
 def getgetrev(cl):