~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/reconfigure.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-11 21:44:08 UTC
  • mfrom: (2796.2.30 bzr.reconfigure)
  • Revision ID: pqm@pqm.ubuntu.com-20080111214408-cpkslxu95eg5c45u
Reconfigure can safely be interrupted while fetching (abentley,
        #179316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
        if self._create_branch and self.referenced_branch is not None:
217
217
            repo.fetch(self.referenced_branch.repository,
218
218
                       self.referenced_branch.last_revision())
 
219
        if self._create_reference:
 
220
            reference_branch = branch.Branch.open(self._select_bind_location())
 
221
        if self._destroy_repository:
 
222
            if self._create_reference:
 
223
                reference_branch.repository.fetch(self.repository)
219
224
        last_revision_info = None
220
225
        if self._destroy_reference:
221
226
            last_revision_info = self.referenced_branch.last_revision_info()
230
235
        else:
231
236
            local_branch = self.local_branch
232
237
        if self._create_reference:
233
 
            reference_branch = branch.Branch.open(self._select_bind_location())
234
238
            format = branch.BranchReferenceFormat().initialize(self.bzrdir,
235
239
                reference_branch)
236
240
        if self._destroy_tree:
243
247
            bind_location = self._select_bind_location()
244
248
            local_branch.bind(branch.Branch.open(bind_location))
245
249
        if self._destroy_repository:
246
 
            if self._create_reference:
247
 
                reference_branch.repository.fetch(self.repository)
248
250
            self.bzrdir.destroy_repository()