~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2012-01-18 20:08:49 UTC
  • mfrom: (6240.5.9 pre_post_command_hooks)
  • Revision ID: pqm@pqm.ubuntu.com-20120118200849-i93mg9cvcwxpvth3
(jelmer) Add pre_command and post_command hooks. (Jelmer Vernooij)

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.