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.
--- 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)