/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/bzrdir.py

  • Committer: Robert Collins
  • Date: 2006-11-22 02:49:26 UTC
  • mto: (2018.5.34 hpss)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: robertc@robertcollins.net-20061122024926-41ba3a48a35200ee
Implement a BzrDir.open_branch smart server method for opening a branch without VFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
                    break
392
392
                else:
393
393
                    continue
394
 
            if ((found_bzrdir.root_transport.base == 
 
394
            if ((found_bzrdir.root_transport.base ==
395
395
                 self.root_transport.base) or repository.is_shared()):
396
396
                return repository
397
397
            else:
398
398
                raise errors.NoRepositoryPresent(self)
399
399
        raise errors.NoRepositoryPresent(self)
400
400
 
 
401
    def get_branch_reference(self):
 
402
        """Return the referenced URL for the branch in this bzrdir.
 
403
 
 
404
        :raises NotBranchError: If there is no Branch.
 
405
        :return: The URL the branch in this bzrdir references if it is a
 
406
            reference branch, or None for regular branches.
 
407
        """
 
408
        return None
 
409
 
401
410
    def get_branch_transport(self, branch_format):
402
411
        """Get the transport for use by branch format in this BzrDir.
403
412
 
930
939
                                     lockable_files.TransportLock)
931
940
        return temp_control._dir_mode
932
941
 
 
942
    def get_branch_reference(self):
 
943
        """See BzrDir.get_branch_reference()."""
 
944
        from bzrlib.branch import BranchFormat
 
945
        format = BranchFormat.find_format(self)
 
946
        return format.get_reference(self)
 
947
 
933
948
    def get_branch_transport(self, branch_format):
934
949
        """See BzrDir.get_branch_transport()."""
935
950
        if branch_format is None: