hgext/graphlog.py
changeset 7383 b501c7f3c2ad
parent 7379 ef22cb8896d6
child 7426 df0962f6c54e
equal deleted inserted replaced
7382:f5f6b7dcd217 7383:b501c7f3c2ad
    38     """
    38     """
    39     assert start >= stop
    39     assert start >= stop
    40     filerev = len(repo.file(path)) - 1
    40     filerev = len(repo.file(path)) - 1
    41     while filerev >= 0:
    41     while filerev >= 0:
    42         fctx = repo.filectx(path, fileid=filerev)
    42         fctx = repo.filectx(path, fileid=filerev)
    43         parents = [f.filerev() for f in fctx.parents() if f.path() == path]
    43         parents = [f.linkrev() for f in fctx.parents() if f.path() == path]
    44         parents.sort()
    44         parents.sort()
    45         if fctx.rev() <= start:
    45         if fctx.rev() <= start:
    46             yield (fctx, parents)
    46             yield (fctx, parents)
    47         if fctx.rev() <= stop:
    47         if fctx.rev() <= stop:
    48             break
    48             break