# HG changeset patch
# User Durham Goode <durham@fb.com>
# Date 1507227744 25200
#      Thu Oct 05 11:22:24 2017 -0700
# Node ID 6bb4c99362f01d8aa8ff531793e1d4825692c2ba
# Parent  5821075b289a1abd439192bee2182625fc06ad74
overlay: update changelogrevision

Upstream changed the representation of this structure, to make it not a named
tuple. So let's update to match it. The tests caught this issue.

diff --git a/hggit/overlay.py b/hggit/overlay.py
--- a/hggit/overlay.py
+++ b/hggit/overlay.py
@@ -397,7 +397,15 @@
             return overlaychangectx(self.repo, sha).totuple()
 
     def changelogrevision(self, noderev):
-        return changelog._changelogrevision(*self.read(noderev))
+        values = self.read(noderev)
+        return changelog._changelogrevision(
+            manifest=values[0],
+            user=values[1],
+            date=values[2],
+            files=values[3],
+            description=values[4],
+            extra=values[5],
+        )
 
 class overlayrepo(object):
     def __init__(self, handler, commits, refs):