changeset 51304:d91b55371d6f

git-hgext: adjust to the lack of `changelog.heads` method We don't have a `heads` method returning nodeid, but this is very easy to get the same result. This was flagged by pytype. We can note that the fact this code did not break is probably a good sign that it is dead code. However this is a question outside of the scop of this series.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 22:54:52 +0100
parents e5b710ce643a
children 05ce07bdb173
files hgext/git/gitlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/git/gitlog.py	Tue Dec 19 22:21:31 2023 +0100
+++ b/hgext/git/gitlog.py	Tue Dec 19 22:54:52 2023 +0100
@@ -324,7 +324,7 @@
         if common is None:
             common = [sha1nodeconstants.nullid]
         if heads is None:
-            heads = self.heads()
+            heads = [self.node(r) for r in self.headrevs()]
 
         common = [self.rev(n) for n in common]
         heads = [self.rev(n) for n in heads]