~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

[merge] john

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import types
31
31
 
32
32
import bzrlib
33
 
from bzrlib.errors import BzrError, NotBranchError
 
33
from bzrlib.errors import BzrError, PathNotChild
34
34
from bzrlib.trace import mutter
35
35
 
36
36
 
486
486
    else:
487
487
        # XXX This should raise a NotChildPath exception, as its not tied
488
488
        # to branch anymore.
489
 
        raise NotBranchError("path %r is not within branch %r" % (rp, base))
 
489
        raise PathNotChild(rp, base)
490
490
 
491
491
    return os.sep.join(s)
492
492