diff tests/test-parseindex @ 6750:fb42030d79d6

add __len__ and __iter__ methods to repo and revlog
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Jun 2008 14:35:50 -0500
parents c0b449154a90
children 4c94b6d0fb1c
line wrap: on
line diff
--- a/tests/test-parseindex	Thu Jun 26 14:35:50 2008 -0500
+++ b/tests/test-parseindex	Thu Jun 26 14:35:50 2008 -0500
@@ -44,8 +44,8 @@
     return wrapper
 
 cl = changelog.changelog(opener('.hg/store'))
-print cl.count(), 'revisions:'
-for r in xrange(cl.count()):
+print len(cl), 'revisions:'
+for r in cl:
     print short(cl.node(r))
 EOF