comparison hgext/git/gitlog.py @ 51321: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 1e12ea7d8435
children f4733654f144
comparison
equal deleted inserted replaced
51320:e5b710ce643a 51321:d91b55371d6f
322 not supplied, uses all of the revlog's heads. If common is not 322 not supplied, uses all of the revlog's heads. If common is not
323 supplied, uses nullid.""" 323 supplied, uses nullid."""
324 if common is None: 324 if common is None:
325 common = [sha1nodeconstants.nullid] 325 common = [sha1nodeconstants.nullid]
326 if heads is None: 326 if heads is None:
327 heads = self.heads() 327 heads = [self.node(r) for r in self.headrevs()]
328 328
329 common = [self.rev(n) for n in common] 329 common = [self.rev(n) for n in common]
330 heads = [self.rev(n) for n in heads] 330 heads = [self.rev(n) for n in heads]
331 331
332 inc = self.incrementalmissingrevs(common=common) 332 inc = self.incrementalmissingrevs(common=common)