• 
      

    Use the original file name from the parent diff for files that are moved by the parent diff.

    Review Request #9635 — Created Feb. 14, 2018 and discarded

    Information

    Review Board
    release-3.0.x

    Reviewers

    If a file is modified in the current diff and renamed / moved in the parent
    diff, we have to use the file name from the parent diff as source file in
    diffutils.get_original_file() otherwise the file diff will not be displayed
    correctly.

    This fixes bug 4573.

    Testing done:
    In a local Mercurial project, created a changeset that moves a file, and
    subsequently a changeset the modifies the moved file. Created a review for
    the second changeset using rbt post.
    Without the fix, the diff for the file is not displayed because the source
    file cannot be found.
    With the fix, the diff is displayed correctly.

    Description From Last Updated

    E501 line too long (80 > 79 characters)

    reviewbotreviewbot

    E501 line too long (94 > 79 characters)

    reviewbotreviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    GI
    GI
    GI
    GI
    Review request changed
    Status:
    Discarded