src/mercurialserver/changes.py
changeset 376 d503d5a786f3
parent 242 03d8f07230b3
--- a/src/mercurialserver/changes.py	Wed Mar 05 12:16:46 2014 +0100
+++ b/src/mercurialserver/changes.py	Fri Jul 20 17:17:49 2018 +0200
@@ -3,10 +3,10 @@
 """
 
 def changes(repo, node):
-    start = repo.changectx(node).rev()
+    start = repo[node].rev()
     try:
         end = len(repo.changelog)
     except:
         end = repo.changelog.count()
     for rev in xrange(start, end):
-        yield repo.changectx(rev)
+        yield repo[rev]