mercurial/changelog.py
changeset 46197 2607a9346398
parent 45942 89a2afe31e82
child 46370 cad17d50736c
--- a/mercurial/changelog.py	Wed Jan 06 19:41:15 2021 +0100
+++ b/mercurial/changelog.py	Thu Dec 17 13:29:50 2020 +0100
@@ -601,7 +601,7 @@
 
         This function exists because creating a changectx object
         just to access this is costly."""
-        extra = self.read(rev)[5]
+        extra = self.changelogrevision(rev).extra
         return encoding.tolocal(extra.get(b"branch")), b'close' in extra
 
     def _nodeduplicatecallback(self, transaction, node):