diff hgext/win32text.py @ 6747:f6c00b17387c

use repo[changeid] to get a changectx
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Jun 2008 14:35:46 -0500
parents 37ab2331b94c
children fb42030d79d6
line wrap: on
line diff
--- a/hgext/win32text.py	Thu Jun 26 13:58:24 2008 -0500
+++ b/hgext/win32text.py	Thu Jun 26 14:35:46 2008 -0500
@@ -99,7 +99,7 @@
 def forbidnewline(ui, repo, hooktype, node, newline, **kwargs):
     halt = False
     for rev in xrange(repo.changelog.rev(bin(node)), repo.changelog.count()):
-        c = repo.changectx(rev)
+        c = repo[rev]
         for f in c.files():
             if f not in c:
                 continue