Use `diff` command for TFS.
Review Request #7450 — Created June 24, 2015 and submitted
Information | |
---|---|
david | |
RBTools | |
release-0.7.x | |
c990bc2... | |
Reviewers | |
rbtools | |
It turns out that
difflib
's unified diff implementation, while seemingly okay,
chokes pretty badly with files that don't end in newlines, or start with
byte-order markers. After piling workaround on top of workaround, I've decided
to rip it out and just use the diffutilsdiff
command.
Posted some changes containing previously problematic files. Saw that they all
worked.
-
-
-
rbtools/clients/tfs.py (Diff revision 1) What happens here if
old_label
andnew_label
are bytestrings, since they're then mixing with Unicode strings?
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+27 -13) |

-
Tool: Pyflakes Processed Files: rbtools/clients/tfs.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/tfs.py
-
-
rbtools/clients/tfs.py (Diff revision 2) Change this comment to reflect that we're no longer using
difflib
.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+28 -15) |