Skip to content
Snippets Groups Projects
Commit fa0c06d9 authored by Cédric Krier's avatar Cédric Krier
Browse files

Remove usage of changectx

This method was removed in Mercurial 4.8, see
https://phab.mercurial-scm.org/D3037
parent 6e9372a2
No related branches found
No related tags found
No related merge requests found
...@@ -428,7 +428,7 @@ class HgExtractor(GenericExtractor): ...@@ -428,7 +428,7 @@ class HgExtractor(GenericExtractor):
ctx = self.repository[commit_id] ctx = self.repository[commit_id]
commit = Commit(self, unifromlocal(short(ctx.hex()))) commit = Commit(self, unifromlocal(short(ctx.hex())))
# Extract commit-specific values from a "context" object # Extract commit-specific values from a "context" object
ctx = self.repository.changectx(node) ctx = self.repository[node]
commit.rev = '%d:%s' % (ctx.rev(), commit.commit) commit.rev = '%d:%s' % (ctx.rev(), commit.commit)
commit.branch = unifromlocal(ctx.branch()) commit.branch = unifromlocal(ctx.branch())
commit.author = unifromlocal(person(ctx.user())) commit.author = unifromlocal(person(ctx.user()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment