~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/bzrdir.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-22 14:12:18 UTC
  • mfrom: (6155.3.1 jam)
  • Revision ID: pqm@pqm.ubuntu.com-20110922141218-86s4uu6nqvourw4f
(jameinel) Cleanup comments bzrlib/smart/__init__.py (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
class SmartServerRequestBzrDir(SmartServerRequest):
87
87
 
88
88
    def do(self, path, *args):
89
 
        """Open a BzrDir at path, and return self.do_bzrdir_request(*args)."""
 
89
        """Open a BzrDir at path, and return `self.do_bzrdir_request(*args)`."""
90
90
        try:
91
91
            self._bzrdir = BzrDir.open_from_transport(
92
92
                self.transport_from_client_path(path))
150
150
        control_format = self._bzrdir.cloning_metadir(
151
151
            require_stacking=require_stacking)
152
152
        control_name = control_format.network_name()
153
 
        # XXX: There should be a method that tells us that the format does/does
154
 
        # not have subformats.
155
 
        if isinstance(control_format, BzrDirMetaFormat1):
 
153
        if not control_format.fixed_components:
156
154
            branch_name = ('branch',
157
155
                control_format.get_branch_format().network_name())
158
156
            repository_name = control_format.repository_format.network_name()
181
179
 
182
180
        :param path: The path to the bzrdir.
183
181
        :param network_name: The network name of the branch type to create.
184
 
        :return: (ok, network_name)
 
182
        :return: ('ok', branch_format, repo_path, rich_root, tree_ref,
 
183
            external_lookup, repo_format)
185
184
        """
186
185
        bzrdir = BzrDir.open_from_transport(
187
186
            self.transport_from_client_path(path))