~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_push.py

  • Committer: Martin Pool
  • Date: 2007-04-04 01:22:11 UTC
  • mfrom: (2393.1.1 bzr.docs)
  • mto: This revision was merged to the branch mainline in revision 2397.
  • Revision ID: mbp@sourcefrog.net-20070404012211-sq269me6bai9m6xk
merge trunk and doc fix from elliot

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        except (errors.UninitializableFormat):
130
130
            # Cannot create these branches
131
131
            return
132
 
        tree = a_branch.bzrdir.create_workingtree()
 
132
        try:
 
133
            tree = a_branch.bzrdir.create_workingtree()
 
134
        except errors.NotLocalUrl:
 
135
            tree = a_branch.create_checkout('repo/tree', lightweight=True)
133
136
        self.build_tree(['repo/tree/a'])
134
137
        tree.add(['a'])
135
138
        tree.commit('a')