##// END OF EJS Templates
notify: use changelog API to iterate over revision number (issue5821)...
Boris Feld -
r37811:a07fab68 stable
parent child Browse files
Show More
@@ -469,8 +469,7 b' def hook(ui, repo, hooktype, node=None, '
469 count = 0
469 count = 0
470 author = ''
470 author = ''
471 if hooktype == 'changegroup' or hooktype == 'outgoing':
471 if hooktype == 'changegroup' or hooktype == 'outgoing':
472 start, end = ctx.rev(), len(repo)
472 for rev in repo.changelog.revs(start=ctx.rev()):
473 for rev in xrange(start, end):
474 if n.node(repo[rev]):
473 if n.node(repo[rev]):
475 count += 1
474 count += 1
476 if not author:
475 if not author:
General Comments 0
You need to be logged in to leave comments. Login now