~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Robert Collins
  • Date: 2009-03-06 04:38:56 UTC
  • mto: (4086.1.1 hpss-integration)
  • mto: This revision was merged to the branch mainline in revision 4087.
  • Revision ID: robertc@robertcollins.net-20090306043856-1w5vzs5ebv93zyda
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
        if repo_name:
163
163
            format.repository_format = repository.network_format_registry.get(
164
164
                repo_name)
165
 
        if branch_ref == 'reference':
 
165
        if branch_ref == 'ref':
166
166
            # XXX: we need possible_transports here to avoid reopening the
167
167
            # connection to the referenced location
168
168
            ref_bzrdir = BzrDir.open(branch_name)
169
169
            branch_format = ref_bzrdir.cloning_metadir().get_branch_format()
170
170
            format.set_branch_format(branch_format)
171
 
        elif branch_ref == 'direct':
 
171
        elif branch_ref == 'branch':
172
172
            if branch_name:
173
173
                format.set_branch_format(
174
174
                    branch.network_format_registry.get(branch_name))