|
@@ -480,10 +480,11 @@ class DiffParser(object):
|
480
|
480
|
self._type = 'unified'
|
481
|
481
|
break
|
482
|
482
|
else:
|
483
|
|
- if size < 4:
|
|
483
|
+ if size < 5:
|
484
|
484
|
# It's safe to consider as udiff if patch stream contains no
|
485
|
|
- # more than 3 lines, happens with `git diff` on a file that
|
486
|
|
- # only has perm bits changes
|
|
485
|
+ # more than 4 lines. happens with `git diff` on a file that
|
|
486
|
+ # only has perm bits changes or `svn diff` with property
|
|
487
|
+ # changes.
|
487
|
488
|
#
|
488
|
489
|
self._type = 'unified'
|
489
|
490
|
else:
|