hgext/git/gitlog.py
branchstable
changeset 47052 f8fa7ec53517
parent 47050 ce24a00fe7f0
child 47057 7431f5ab0d2a
--- a/hgext/git/gitlog.py	Tue Apr 27 18:39:59 2021 -0400
+++ b/hgext/git/gitlog.py	Tue Apr 27 19:38:19 2021 -0400
@@ -221,9 +221,10 @@
             n = self.node(nodeorrev)
         else:
             n = nodeorrev
+        extra = {b'branch': b'default'}
         # handle looking up nullid
         if n == nullid:
-            return hgchangelog._changelogrevision(extra={}, manifest=nullid)
+            return hgchangelog._changelogrevision(extra=extra, manifest=nullid)
         hn = gitutil.togitnode(n)
         # We've got a real commit!
         files = [
@@ -253,7 +254,7 @@
             filesremoved=filesremoved,
             description=c.message.encode('utf8'),
             # TODO do we want to handle extra? how?
-            extra={b'branch': b'default'},
+            extra=extra,
         )
 
     def ancestors(self, revs, stoprev=0, inclusive=False):