comparison svnwrap/svn_swig_wrapper.py @ 51:fd5aadd552c8

Catch other varieties of the server not having replay.
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Sat, 01 Nov 2008 13:05:56 -0500
parents 80b923ab242b
children 430af23bef4a
comparison
equal deleted inserted replaced
50:80b923ab242b 51:fd5aadd552c8
335 ra.replay(self.ra, revision, oldest_rev_i_have, True, e_ptr, 335 ra.replay(self.ra, revision, oldest_rev_i_have, True, e_ptr,
336 e_baton, self.pool) 336 e_baton, self.pool)
337 except core.SubversionException, e: 337 except core.SubversionException, e:
338 # can I depend on this number being constant? 338 # can I depend on this number being constant?
339 if (e.message == "Server doesn't support the replay command" 339 if (e.message == "Server doesn't support the replay command"
340 or e.apr_err == 170003): 340 or e.apr_err == 170003
341 or e.message == 'The requested report is unknown.'
342 or e.apr_err == 200007):
341 raise SubversionRepoCanNotReplay, ('This Subversion server ' 343 raise SubversionRepoCanNotReplay, ('This Subversion server '
342 'is older than 1.4.0, and cannot satisfy replay requests.') 344 'is older than 1.4.0, and cannot satisfy replay requests.')
343 else: 345 else:
344 raise 346 raise
345 347