src/mercurialserver/changes.py
author Paul Crowley <paul@lshift.net>
Tue, 10 Nov 2009 16:16:15 +0000
changeset 197 76a249a8b62d
parent 67 fd16d9a1234b
child 242 03d8f07230b3
permissions -rw-r--r--
Added tag release_0.8 for changeset 1ad9d5841a48

# 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)