/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2007-11-18 18:43:35 UTC
  • mfrom: (3006 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3011.
  • Revision ID: aaron.bentley@utoronto.ca-20071118184335-rjptgedxv4357lna
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        except errors.NotBranchError:
210
210
            pass
211
211
        try:
212
 
            self.open_workingtree().clone(result)
213
 
        except (errors.NoWorkingTree, errors.NotLocalUrl):
214
 
            pass
 
212
            result_repo = result.find_repository()
 
213
        except errors.NoRepositoryPresent:
 
214
            result_repo = None
 
215
        if result_repo is None or result_repo.make_working_trees():
 
216
            try:
 
217
                self.open_workingtree().clone(result)
 
218
            except (errors.NoWorkingTree, errors.NotLocalUrl):
 
219
                pass
215
220
        return result
216
221
 
217
222
    # TODO: This should be given a Transport, and should chdir up; otherwise