Mercurial > public > mercurial-scm > hg
diff hgext/win32text.py @ 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 | f6c00b17387c |
children | 59b4ae211584 |
line wrap: on
line diff
--- a/hgext/win32text.py Thu Jun 26 14:35:50 2008 -0500 +++ b/hgext/win32text.py Thu Jun 26 14:35:50 2008 -0500 @@ -98,7 +98,7 @@ def forbidnewline(ui, repo, hooktype, node, newline, **kwargs): halt = False - for rev in xrange(repo.changelog.rev(bin(node)), repo.changelog.count()): + for rev in xrange(repo[node].rev(), len(repo)): c = repo[rev] for f in c.files(): if f not in c: