comparison svnwrap/svn_swig_wrapper.py @ 228:f71af18c4379

Merge with crew.
author Augie Fackler <durin42@gmail.com>
date Tue, 07 Apr 2009 13:48:58 -0500
parents b5ef9a404f5d 2165461d2dd8
children 80a700398995
comparison
equal deleted inserted replaced
223:330f0b15d417 228:f71af18c4379
187 187
188 def tags_at_rev(self, revision): 188 def tags_at_rev(self, revision):
189 try: 189 try:
190 tags = self.list_dir('tags', revision=revision).keys() 190 tags = self.list_dir('tags', revision=revision).keys()
191 except core.SubversionException, e: 191 except core.SubversionException, e:
192 if e.apr_err == 160013: 192 if e.apr_err == core.SVN_ERR_FS_NOT_FOUND:
193 return {} 193 return {}
194 raise 194 raise
195 tag_info = {} 195 tag_info = {}
196 for t in tags: 196 for t in tags:
197 tag_info[t] = self._get_copy_source('tags/%s' % t, 197 tag_info[t] = self._get_copy_source('tags/%s' % t,
368 try: 368 try:
369 ra.replay(self.ra, revision, oldest_rev_i_have, True, e_ptr, 369 ra.replay(self.ra, revision, oldest_rev_i_have, True, e_ptr,
370 e_baton, self.pool) 370 e_baton, self.pool)
371 except core.SubversionException, e: #pragma: no cover 371 except core.SubversionException, e: #pragma: no cover
372 # can I depend on this number being constant? 372 # can I depend on this number being constant?
373 if (e.message == "Server doesn't support the replay command" 373 if (e.apr_err == core.SVN_ERR_RA_NOT_IMPLEMENTED or
374 or e.apr_err == 170003 374 e.apr_err == core.SVN_ERR_UNSUPPORTED_FEATURE):
375 or e.message == 'The requested report is unknown.'
376 or e.apr_err == 200007):
377 raise SubversionRepoCanNotReplay, ('This Subversion server ' 375 raise SubversionRepoCanNotReplay, ('This Subversion server '
378 'is older than 1.4.0, and cannot satisfy replay requests.') 376 'is older than 1.4.0, and cannot satisfy replay requests.')
379 else: 377 else:
380 raise 378 raise
381 379