src/changes.py
changeset 52 f9eb98bb0791
child 62 f1e319d3672a
equal deleted inserted replaced
51:d87eeeae29a5 52:f9eb98bb0791
       
     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)
       
    19