Handle new, changed and deleted symlinks in git.

Review Request #8785 — Created Feb. 28, 2017 and submitted — Latest diff uploaded

Information

Review Board
master
a88cf7f...

Reviewers

Mark up file diffs that add, change or remove a symlink so that a label can be
shown in the UI to indicate that the file is a symlink.

Also normalize a git patch containing a symlink to make the file appear as a
regular file, otherwise patch fails to apply the diff, complaining about the
file not being a symlink.

Unit test.

Tested with a patch adding a symlink and changing another symlink. The files
were properly marked with " (symlink)" in the UI.

reviewboard/diffviewer/diffutils.py
reviewboard/diffviewer/managers.py
reviewboard/diffviewer/parser.py
reviewboard/scmtools/git.py
reviewboard/scmtools/tests/test_git.py
reviewboard/templates/diffviewer/diff_file_fragment.html
Loading...