/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Robert Collins
  • Date: 2005-10-16 22:09:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1458.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016220909-3e008de51bb9ef9c
make Branch.relpath delegate to the working tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from bzrlib.branch import Branch
28
28
import bzrlib.tree
29
 
from bzrlib.osutils import appendpath, file_kind, isdir, splitpath
 
29
from bzrlib.osutils import appendpath, file_kind, isdir, splitpath, relpath
30
30
from bzrlib.errors import BzrCheckError
31
31
from bzrlib.trace import mutter
32
32
 
149
149
    def abspath(self, filename):
150
150
        return os.path.join(self.basedir, filename)
151
151
 
 
152
    def relpath(self, abspath):
 
153
        """Return the local path portion from a given absolute path."""
 
154
        return relpath(self.basedir, abspath)
 
155
 
152
156
    def has_filename(self, filename):
153
157
        return bzrlib.osutils.lexists(self.abspath(filename))
154
158