Skip to content
Snippets Groups Projects
Commit a07fab68 authored by Boris Feld's avatar Boris Feld
Browse files

notify: use changelog API to iterate over revision number (issue5821)

This will avoid iterating over filtered revision.
parent 33d26f7b
No related branches found
No related tags found
No related merge requests found
......@@ -469,8 +469,7 @@
count = 0
author = ''
if hooktype == 'changegroup' or hooktype == 'outgoing':
start, end = ctx.rev(), len(repo)
for rev in xrange(start, end):
for rev in repo.changelog.revs(start=ctx.rev()):
if n.node(repo[rev]):
count += 1
if not author:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment