diff -r d87eeeae29a5 -r f9eb98bb0791 src/changes.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/changes.py Fri Feb 20 15:08:50 2009 +0000 @@ -0,0 +1,19 @@ +# Copyright 2008-2009 LShift Ltd +# Copyright 2006 Vadim Gelfer +# +# Authors: +# Paul Crowley +# Vadim Gelfer +# +# 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) +