/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/per_branch/test_sprout.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-03-04 06:21:20 UTC
  • mfrom: (7141.8.7 git-config-branches)
  • Revision ID: breezy.the.bot@gmail.com-20190304062120-pmcmhza3xro5euy7
Support reading related branches from git configs.

Merged from https://code.launchpad.net/~jelmer/brz/git-config-branches/+merge/358140

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    osutils,
24
24
    revision as _mod_revision,
25
25
    tests,
 
26
    urlutils,
26
27
    )
27
28
from breezy.bzr import (
28
29
    branch as _mod_bzrbranch,
43
44
    def test_sprout_branch_parent(self):
44
45
        source = self.make_branch('source')
45
46
        target = source.controldir.sprout(self.get_url('target')).open_branch()
46
 
        self.assertEqual(source.user_url, target.get_parent())
 
47
        self.assertEqual(
 
48
            urlutils.split_segment_parameters(source.user_url)[0],
 
49
            urlutils.split_segment_parameters(target.get_parent())[0])
47
50
 
48
51
    def test_sprout_uses_bzrdir_branch_format(self):
49
52
        # branch.sprout(bzrdir) is defined as using the branch format selected