From ad8f8552bc8bb7ff31848ccdc729f79aa63e88aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= <ced@b2ck.com> Date: Tue, 21 Jul 2020 14:09:34 +0200 Subject: [PATCH] Ensure to call lookup with a string Since https://phab.mercurial-scm.org/D3055, lookup method accepts only string and no more integers. --- irkerhook.py | 1 - 1 file changed, 1 deletion(-) diff --git a/irkerhook.py b/irkerhook.py index 03e7e20..f854a6b 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -428,7 +428,6 @@ class HgExtractor(GenericExtractor): ctx = self.repository[commit_id] commit = Commit(self, unifromlocal(short(ctx.hex()))) # Extract commit-specific values from a "context" object - ctx = self.repository[node] commit.rev = '%d:%s' % (ctx.rev(), commit.commit) commit.branch = unifromlocal(ctx.branch()) commit.author = unifromlocal(person(ctx.user())) -- GitLab