~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Robert Collins
  • Date: 2005-10-16 22:04:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1458.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016220454-0418f1911d37b342
move branch._relpath into osutils as relpath

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    def relpath(self, abspath):
60
60
        """Return the local path portion from a given absolute path.
61
61
        """
62
 
        from bzrlib.branch import _relpath
63
 
        return _relpath(self.base, abspath)
 
62
        from bzrlib.osutils import relpath
 
63
        return relpath(self.base, abspath)
64
64
 
65
65
    def has(self, relpath):
66
66
        return os.access(self.abspath(relpath), os.F_OK)