src/changes.py
author Paul Crowley <paul@lshift.net>
Fri, 20 Feb 2009 17:34:30 +0000
changeset 59 f96de2d99f00
parent 52 f9eb98bb0791
child 62 f1e319d3672a
permissions -rw-r--r--
give logging module a more specific name

# Copyright 2008-2009 LShift Ltd
# Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
#
# Authors:
# Paul Crowley <paul@lshift.net>
# Vadim Gelfer <vadim.gelfer@gmail.com>
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.

def changes(repo, node):
    start = repo.changectx(node).rev()
    try:
        end = len(repo.changelog)
    except:
        end = repo.changelog.count()
    for rev in xrange(start, end):
        yield repo.changectx(rev)