src/mercurialserver/changes.py
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 31 Oct 2018 13:21:37 -0700
changeset 377 18869fcfbc92
parent 376 d503d5a786f3
permissions -rw-r--r--
Merge a41e4382ea6e

"""
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]