~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-10-16 22:31:25 UTC
  • mto: This revision was merged to the branch mainline in revision 1458.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016223125-26d4401cb94b7b82
Branch.relpath has been moved to WorkingTree.relpath.

WorkingTree no no longer takes an inventory, rather it takes an optional branch
parameter, and if None is given will open the branch at basedir implicitly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
        """
359
359
        return self._transport.abspath(name)
360
360
 
361
 
    def relpath(self, path):
362
 
        """Return path relative to this branch of something inside it.
363
 
 
364
 
        Raises an error if path is not in this branch.
365
 
        XXX: Robert Collins 20051017 what is this used for? why is it a branch
366
 
        method and not a tree method. -> moving to WorkingTree.
367
 
        """
368
 
        return self.working_tree().relpath(path)
369
 
 
370
361
    def _rel_controlfilename(self, file_or_path):
371
362
        if isinstance(file_or_path, basestring):
372
363
            file_or_path = [file_or_path]