~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/weave_fmt/branch.py

Merge bzr.dev and tree-file-ids-as-tuples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
    def open(self, a_bzrdir, name=None, _found=False, ignore_fallbacks=False,
139
139
            found_repository=None, possible_transports=None):
140
140
        """See BranchFormat.open()."""
141
 
        if name is not None:
 
141
        if name is None:
 
142
            name = a_bzrdir._get_selected_branch()
 
143
        if name != "":
142
144
            raise errors.NoColocatedBranchSupport(self)
143
145
        if not _found:
144
146
            # we are being called directly and must probe.