Fix TFS branch+edit operations.

Review Request #8666 — Created Jan. 25, 2017 and submitted

Information

rb-tfs
master
58630d7...

Reviewers

The differ for branch+edits wasn't correctly including the original filename or
revision in the diff. The result of this was that files which were copied only
would show up properly, though the "Copied from ..." line would be wrong. Files
that were copied and then edited would fail to patch, since the original
version wasn't correctly found.

This change fixes it up so we set the oldFilename and oldVersion correctly
for both renames and copies.

Posted a change that involved a branch+edit of a file. Before this change, I
saw a patch failure in the diff viewer. After, I see the diff I expect.

reviewbot
  1. Tool: PEP8 Style Checker
    Ignored Files:
        org/reviewboard/tfs/TFSDiffer.java
    
    
    
    Tool: Pyflakes
    Ignored Files:
        org/reviewboard/tfs/TFSDiffer.java
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (03d1a0f)
Loading...