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

  • Committer: Jelmer Vernooij
  • Date: 2017-06-10 00:52:37 UTC
  • mto: (6670.4.8 move-bzr)
  • mto: This revision was merged to the branch mainline in revision 6681.
  • Revision ID: jelmer@jelmer.uk-20170610005237-59jdqykbfjo1p37t
Rename make_bzrdir to make_controldir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
        # stacked_on_url is that exact path segment. Added to nail bug 385132.
339
339
        self.setup_smart_server_with_call_log()
340
340
        self.make_branch('stack-on', format='1.9')
341
 
        self.make_bzrdir('.').get_config().set_default_stack_on(
 
341
        self.make_controldir('.').get_config().set_default_stack_on(
342
342
            '/stack-on')
343
343
        self.make_branch('from', format='1.9')
344
344
        out, err = self.run_bzr(['push', '-d', 'from', self.get_url('to')])
351
351
        # stacked_on_url is a relative path. Added to nail bug 385132.
352
352
        self.setup_smart_server_with_call_log()
353
353
        self.make_branch('stack-on', format='1.9')
354
 
        self.make_bzrdir('.').get_config().set_default_stack_on('stack-on')
 
354
        self.make_controldir('.').get_config().set_default_stack_on('stack-on')
355
355
        self.make_branch('from', format='1.9')
356
356
        out, err = self.run_bzr(['push', '-d', 'from', self.get_url('to')])
357
357
        b = branch.Branch.open(self.get_url('to'))
433
433
        # TODO: jam 20070109 Maybe it would be better to create the repository
434
434
        #       if at this point
435
435
        tree = self.create_simple_tree()
436
 
        a_controldir = self.make_bzrdir('dir')
 
436
        a_controldir = self.make_controldir('dir')
437
437
 
438
438
        self.run_bzr_error(['At ../dir you have a valid .bzr control'],
439
439
                'push ../dir',
539
539
 
540
540
    def test_push_notifies_default_stacking(self):
541
541
        self.make_branch('stack_on', format='1.6')
542
 
        self.make_bzrdir('.').get_config().set_default_stack_on('stack_on')
 
542
        self.make_controldir('.').get_config().set_default_stack_on('stack_on')
543
543
        self.make_branch('from', format='1.6')
544
544
        out, err = self.run_bzr('push -d from to')
545
545
        self.assertContainsRe(err,
547
547
 
548
548
    def test_push_stacks_with_default_stacking_if_target_is_stackable(self):
549
549
        self.make_branch('stack_on', format='1.6')
550
 
        self.make_bzrdir('.').get_config().set_default_stack_on('stack_on')
 
550
        self.make_controldir('.').get_config().set_default_stack_on('stack_on')
551
551
        self.make_branch('from', format='pack-0.92')
552
552
        out, err = self.run_bzr('push -d from to')
553
553
        b = branch.Branch.open('to')
555
555
 
556
556
    def test_push_does_not_change_format_with_default_if_target_cannot(self):
557
557
        self.make_branch('stack_on', format='pack-0.92')
558
 
        self.make_bzrdir('.').get_config().set_default_stack_on('stack_on')
 
558
        self.make_controldir('.').get_config().set_default_stack_on('stack_on')
559
559
        self.make_branch('from', format='pack-0.92')
560
560
        out, err = self.run_bzr('push -d from to')
561
561
        b = branch.Branch.open('to')
584
584
        self.run_bzr('push -d repo/local trunk -r 1')
585
585
        # Set a default stacking policy so that new branches will automatically
586
586
        # stack on trunk.
587
 
        self.make_bzrdir('.').get_config().set_default_stack_on('trunk')
 
587
        self.make_controldir('.').get_config().set_default_stack_on('trunk')
588
588
        # Push rev-2 to a new branch "remote".  It will be stacked on "trunk".
589
589
        out, err = self.run_bzr('push -d repo/local remote -r 2')
590
590
        self.assertContainsRe(