hgext/notify.py
branchstable
changeset 37793 a07fab68621f
parent 37777 a4cac7b0ea4f
child 37794 04d648b53e3e
equal deleted inserted replaced
37792:33d26f7bd6ca 37793:a07fab68621f
   467     ui.pushbuffer()
   467     ui.pushbuffer()
   468     data = ''
   468     data = ''
   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:
   477                     author = repo[rev].user()
   476                     author = repo[rev].user()
   478             else:
   477             else: