src/mercurialserver/changes.py
changeset 67 fd16d9a1234b
parent 62 f1e319d3672a
child 242 03d8f07230b3
equal deleted inserted replaced
66:2f0ea1163b9e 67:fd16d9a1234b
       
     1 # Copyright 2008-2009 LShift Ltd
       
     2 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
       
     3 #
       
     4 # Authors:
       
     5 # Paul Crowley <paul@lshift.net>
       
     6 # Vadim Gelfer <vadim.gelfer@gmail.com>
       
     7 #
       
     8 # This software may be used and distributed according to the terms
       
     9 # of the GNU General Public License, incorporated herein by reference.
       
    10 
       
    11 def changes(repo, node):
       
    12     start = repo.changectx(node).rev()
       
    13     try:
       
    14         end = len(repo.changelog)
       
    15     except:
       
    16         end = repo.changelog.count()
       
    17     for rev in xrange(start, end):
       
    18         yield repo.changectx(rev)