~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-09 05:29:09 UTC
  • mfrom: (3928.3.4 stacking_tweaks)
  • Revision ID: pqm@pqm.ubuntu.com-20090109052909-3jh4taiu906vin4p
(jam) Some fixes to stacked branches to avoid opening multiple
        connections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        cmd.outf = tests.StringIOWrapper()
33
33
        cmd.run(self.get_url('remote'), directory='branch')
34
34
        self.assertEquals(1, len(self.connections))
 
35
 
 
36
    def test_push_onto_stacked(self):
 
37
        self.make_branch_and_tree('base', format='1.9')
 
38
        self.make_branch_and_tree('source', format='1.9')
 
39
 
 
40
        self.start_logging_connections()
 
41
 
 
42
        cmd = cmd_push()
 
43
        cmd.outf = tests.StringIOWrapper()
 
44
        cmd.run(self.get_url('remote'), directory='source',
 
45
                stacked_on=self.get_url('base'))
 
46
        self.assertEqual(1, len(self.connections))