~gagern/bzr-svn/bug242321

« back to all changes in this revision

Viewing changes to repository.py

  • Committer: Jelmer Vernooij
  • Date: 2008-06-05 17:54:39 UTC
  • Revision ID: jelmer@samba.org-20080605175439-4qlkiutmdxkgh1o7
Move definition of error codes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
        try:
381
381
            return (svn.core.svn_node_dir == self.transport.check_path(path, revnum))
382
382
        except SubversionException, (_, num):
383
 
            if num == svn.core.SVN_ERR_FS_NO_SUCH_REVISION:
 
383
            if num == ERR_FS_NO_SUCH_REVISION:
384
384
                return False
385
385
            raise
386
386
 
734
734
                                        elif (layout.is_branch_parent(n) or 
735
735
                                              layout.is_tag_parent(n)):
736
736
                                            parents.append(n)
737
 
                                except SubversionException, (_, svn.core.SVN_ERR_FS_NOT_DIRECTORY):
 
737
                                except SubversionException, (_, errors.ERR_FS_NOT_DIRECTORY):
738
738
                                    pass
739
739
        finally:
740
740
            pb.finished()