Dmitry Frank
507e736ccb
Implement --wrap flag
Which causes long lines to be nicely wrapped in side-by-side mode. To be
used primarily with `-s -w0`.
il y a 6 ans
Leeor Aharon
6653ed39ed
fixed tests for tab expansion
il y a 7 ans
Matthew Wang
a723fbe398
Add a minimal test to cover handling CDIFF_OPTIONS
il y a 7 ans
Matthew Wang
1a433ff5d7
Implement pep8 check
Excludes E203 whitespace before ':' for now.
TODO: look into pep8 for why `# nopep8` does not work here
il y a 8 ans
Matthew Wang
62a1528a31
Disable one more test that do not pass on travis due to tty problem
il y a 8 ans
Matthew Wang
c07163334d
Disable tests that do not pass on travis due to tty problem
il y a 8 ans
Matthew Wang
5c28b597e9
Remove a negative test fails without tty
il y a 8 ans
Matthew Wang
bd099f3a87
Fix a test that does not pass when stdin is closed
il y a 8 ans
Matthew Wang
8f4d68e171
Fix special hunk meta handling in unit tests
il y a 9 ans
Matthew Wang
476efa1a1c
Update tests accordingly
il y a 10 ans
Matthew Wang
f8066bd313
Disable an invalid test for negative width
il y a 10 ans
Steven Myint
095740253c
Handle Latin-1 encoded text in diffs
This is useful for avoiding crashing on "cdiff -l" (on Python 3) in
https://github.com/myint/cppclean.
Also handle unknown encodings gracefully rather than crashing.
il y a 11 ans
Matthew Wang
46d9e21076
Fix an unit test fails in python 2.5 for issue #31
il y a 11 ans
Matthew Wang
73e8e660b4
Fix issue #31 by catching UnicodeDecodeError as well
il y a 11 ans
Matthew Wang
04ac895387
Refactor to make logic clearer, no DiffOps anymore
If need to support normal diff, writing a ndiff to udiff translator
makes more sense
il y a 11 ans
Matthew Wang
91c9df1f4e
Re-enable context diff related tests
il y a 11 ans
Matthew Wang
5ece3ada9b
Skip a context diff related unit test as Travis not ready
il y a 11 ans
Matthew Wang
2e49a7eb3f
Fall through unknown format to 'unified', fixed #18
il y a 11 ans
Steven Myint
5ddd06fd05
Handle a diff with only an svn property change
il y a 11 ans
Matthew Wang
69e4b1683e
Probe context diff for #15
il y a 11 ans
Matthew Wang
7881a41f69
- Naming enhancement for unified diff
il y a 11 ans
Matthew Wang
e191e54ea6
Fixed #14 by tolerating dangling headers and short patch < 4 lines
il y a 11 ans
Matthew Wang
6a6249f4c6
Dirty fix false alarm of dangling header reported in issue #14
il y a 11 ans
Matthew Wang
a09947c1b5
Enough unit tests (95%)
il y a 11 ans
Matthew Wang
b601b6206d
Use '# pragma: no cover' to ignore 1 line logic
il y a 11 ans
Matthew Wang
318bc66ee0
PEP8 lint
il y a 11 ans
Matthew Wang
a413a0351d
Handle 'Binary files ... differ'
il y a 11 ans
Matthew Wang
75b79f0935
Support reading diff or log for given files/dirs in workspace (usage changed on
il y a 11 ans
Matthew Wang
0525f7c1dc
Handle 'Only in <dir>: ' header in output from diff -ru d1 d2
il y a 11 ans
Matthew Wang
8f1aa45c8b
revert debug code; clean up
il y a 11 ans
Matthew Wang
fc9d859705
Add missing git config
il y a 11 ans
Matthew Wang
b62fc6c261
Add hunk header to test case, coverage 87%
il y a 11 ans
Matthew Wang
f780bd427f
Test covers main(), coverage 86%
il y a 11 ans
Matthew Wang
6bae53b2fd
More clean test result
il y a 11 ans
Matthew Wang
35a76e65ea
Built-in 'next()' is new in 2.6
il y a 11 ans
Matthew Wang
8e0f529b91
More cases for patch parser, coverage reached 70%
il y a 11 ans
Matthew Wang
445fd84a08
Use built-in assertRaises()
il y a 11 ans
Matthew Wang
4835304ffa
Document update and clean up for v0.6
il y a 11 ans
Matthew Wang
4ed0ccc826
Coverage reached 61%
il y a 11 ans
Matthew Wang
1d69bb2125
22 unit tests
il y a 11 ans
Matthew Wang
20a8acacf6
Better patch parser; support svn log --diff
il y a 11 ans