# HG changeset patch # User Pierre-Yves David # Date 1695637962 -7200 # Node ID ed65e97db7bce0fb2b54c6fd6cfe9c00145436dc # Parent 93a44c1ba0c6394799cb926bdf7fa0a93eeefc69 convert: use `changelogrevision` to fetch changeset data instead of read This `changelogrevision` is a higher level function that will remain simple to use as we refactor the revlog. diff -r 93a44c1ba0c6 -r ed65e97db7bc hgext/convert/hg.py --- a/hgext/convert/hg.py Mon Sep 25 12:14:38 2023 +0200 +++ b/hgext/convert/hg.py Mon Sep 25 12:32:42 2023 +0200 @@ -298,8 +298,9 @@ parents = pl nparents = len(parents) if self.filemapmode and nparents == 1: - m1node = self.repo.changelog.read(bin(parents[0]))[0] parent = parents[0] + p1_node = bin(parent) + m1node = self.repo.changelog.changelogrevision(p1_node).manifest if len(parents) < 2: parents.append(self.repo.nullid)