| Index: patch.py
|
| diff --git a/patch.py b/patch.py
|
| index 18c16e2c82c6d0c41433ed7f041abfdf1686b95f..f6b19aca2ebf5efb488b1135843ee7730247510c 100644
|
| --- a/patch.py
|
| +++ b/patch.py
|
| @@ -89,6 +89,8 @@ class FilePatchDiff(FilePatchBase):
|
|
|
| def __init__(self, filename, diff, svn_properties):
|
| super(FilePatchDiff, self).__init__(filename)
|
| + if not diff:
|
| + self._fail('File doesn\'t have a diff.')
|
| self.diff_header, self.diff_hunks = self._split_header(diff)
|
| self.svn_properties = svn_properties or []
|
| self.is_git_diff = self._is_git_diff_header(self.diff_header)
|
|
|