src/mercurialserver/changes.py
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 31 Oct 2018 13:22:13 -0700
changeset 378 a788cfad4cfa
parent 376 d503d5a786f3
permissions -rw-r--r--
Merge 7a1d6b228af6

"""
Find all the changes in a node in a way portable across Mercurial versions
"""

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