Don't strip leading slashes for perforce diffs.

Review Request #5879 — Created May 26, 2014 and submitted

Information

Review Board
release-2.0.x
9c0d1b7...

Reviewers

Because perforce depot paths start with //, stripping a leading slash is a bad,
bad thing. I've moved the filename normalization into the diff parser, and
overridden it in the perforce specialization.

Ran unit tests.

reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/diffviewer/parser.py
        reviewboard/scmtools/tests.py
        reviewboard/diffviewer/managers.py
        reviewboard/scmtools/perforce.py
      Ignored Files:
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        reviewboard/diffviewer/parser.py
        reviewboard/scmtools/tests.py
        reviewboard/diffviewer/managers.py
        reviewboard/scmtools/perforce.py
      Ignored Files:
    
    
  2. 
      
chipx86
  1. Ship It!

  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (d736837)