/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/tests/branch_implementations/test_push.py

  • Committer: Robert Collins
  • Date: 2007-03-28 07:33:07 UTC
  • mto: (2018.5.113 hpss)
  • mto: This revision was merged to the branch mainline in revision 2383.
  • Revision ID: robertc@robertcollins.net-20070328073307-ni7dcww9b1rf0udp
Split out hpss test fixes which dont depend on new or altered API's.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        source = self.make_branch_and_tree('source')
101
101
        target = self.make_branch('target')
102
102
 
103
 
        self.build_tree(['source/a'])
 
103
        self.build_tree(['a'], transport=source.bzrdir.root_transport)
104
104
        source.add(['a'])
105
105
        source.commit('a')
106
106
 
129
129
        except (errors.UninitializableFormat):
130
130
            # Cannot create these branches
131
131
            return
132
 
        tree = a_branch.bzrdir.create_workingtree()
133
 
        self.build_tree(['repo/tree/a'])
 
132
        try:
 
133
            tree = a_branch.bzrdir.create_workingtree()
 
134
        except errors.NotLocalUrl:
 
135
            tree = a_branch.create_checkout('checkout', lightweight=True)
 
136
        self.build_tree(['a'], transport=tree.bzrdir.root_transport)
134
137
        tree.add(['a'])
135
138
        tree.commit('a')
136
139