Handle new, changed and deleted symlinks in git.
Review Request #8785 — Created Feb. 28, 2017 and submitted — Latest diff uploaded
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.
Diff Revision 5
This is not the most recent revision of the diff. The latest diff is revision 7. See what's changed.
orig
1
2
3
4
5
6
7
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 |
---|