Mercurial > public > mercurial-scm > hg
diff hgext/notify.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 | e8d447d91cdb |
children | f67d1468ac50 |
line wrap: on
line diff
--- a/hgext/notify.py Thu Jun 26 14:35:50 2008 -0500 +++ b/hgext/notify.py Thu Jun 26 14:35:50 2008 -0500 @@ -269,11 +269,11 @@ node = bin(node) ui.pushbuffer() if hooktype == 'changegroup': - start = repo.changelog.rev(node) - end = repo.changelog.count() + start = repo[node].rev() + end = len(repo) count = end - start for rev in xrange(start, end): - n.node(repo.changelog.node(rev)) + n.node(repo[node].rev()) n.diff(node, repo.changelog.tip()) else: count = 1