Some SVN 0.3.43 interface changes.
This commit is contained in:
@@ -40,7 +40,7 @@ class CommitLogObserver(object):
|
||||
self.last_seen_revision = log_entry.revision
|
||||
|
||||
self._parse_log_entry(log_entry)
|
||||
except svn.common.SvnCommandError:
|
||||
except svn.common.SvnException:
|
||||
# The SVN library just raises a SvnCommandError when something goes wrong,
|
||||
# without any structured indication of the error. There isn't much else
|
||||
# we can do, except to log the error and return.
|
||||
|
@@ -128,7 +128,7 @@ class TestCommitLogObserver(unittest.TestCase):
|
||||
"""SVN errors should not crash the observer."""
|
||||
|
||||
self.mock_client.log_default = mock.Mock(name='log_default',
|
||||
side_effect=svn.common.SvnCommandError('unittest'))
|
||||
side_effect=svn.common.SvnException('unittest'))
|
||||
|
||||
record_blink = mock.Mock(name='record_blink',
|
||||
spec={'__name__': 'record_blink'})
|
||||
|
Reference in New Issue
Block a user