~gagern/bzr-svn/bug242321

« back to all changes in this revision

Viewing changes to branchprops.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:
19
19
from bzrlib.errors import NoSuchRevision
20
20
from bzrlib.trace import mutter
21
21
 
 
22
from bzrlib.plugins.svn.errors import ERR_FS_NO_SUCH_REVISION
 
23
 
22
24
from svn.core import SubversionException
23
25
import svn.core
24
26
 
41
43
            (_, _, props) = self.log._transport.get_dir(path, 
42
44
                revnum)
43
45
        except SubversionException, (_, num):
44
 
            if num == svn.core.SVN_ERR_FS_NO_SUCH_REVISION:
 
46
            if num == ERR_FS_NO_SUCH_REVISION:
45
47
                raise NoSuchRevision(self, revnum)
46
48
            raise
47
49