~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

Cleanup the working_tree comments in Branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
801
801
            return RevisionTree(self.weave_store, inv, revision_id)
802
802
 
803
803
    def working_tree(self):
804
 
        """Return a `Tree` for the working copy."""
 
804
        """Return a `Tree` for the working copy if this is a local branch."""
805
805
        from bzrlib.workingtree import WorkingTree
806
 
        # TODO: In the future, perhaps WorkingTree should utilize Transport
807
 
        # RobertCollins 20051003 - I don't think it should - working trees are
808
 
        # much more complex to keep consistent than our careful .bzr subset.
809
 
        # instead, we should say that working trees are local only, and optimise
810
 
        # for that.
811
806
        if self._transport.base.find('://') != -1:
812
807
            raise NoWorkingTree(self.base)
813
808
        return WorkingTree(self.base, branch=self)