~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_stacking.py

  • Committer: Shannon Weyrick
  • Date: 2011-11-04 13:40:04 UTC
  • mfrom: (6238 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6256.
  • Revision ID: weyrick@mozek.us-20111104134004-033t2wqhc3ydzm0a
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        self.assertRevisionNotInRepository('newbranch', trunk_revid)
151
151
        tree = new_dir.open_branch().create_checkout('local')
152
152
        new_branch_revid = tree.commit('something local')
153
 
        self.assertRevisionNotInRepository('mainline', new_branch_revid)
 
153
        self.assertRevisionNotInRepository(
 
154
            trunk_tree.branch.base, new_branch_revid)
154
155
        self.assertRevisionInRepository('newbranch', new_branch_revid)
155
156
 
156
157
    def test_sprout_stacked_from_smart_server(self):
171
172
        self.assertRevisionNotInRepository('newbranch', trunk_revid)
172
173
        tree = new_dir.open_branch().create_checkout('local')
173
174
        new_branch_revid = tree.commit('something local')
174
 
        self.assertRevisionNotInRepository('mainline', new_branch_revid)
 
175
        self.assertRevisionNotInRepository(trunk_tree.branch.user_url,
 
176
            new_branch_revid)
175
177
        self.assertRevisionInRepository('newbranch', new_branch_revid)
176
178
 
177
179
    def test_unstack_fetches(self):
548
550
        self.assertEqual({}, repo.get_parent_map(['rev1']))
549
551
        # revision_history should work, even though the history is spread over
550
552
        # multiple repositories.
551
 
        self.assertLength(2, stacked.branch.revision_history())
 
553
        self.assertEquals((2, 'rev2'), stacked.branch.last_revision_info())
552
554
 
553
555
 
554
556
class TestStackingConnections(
570
572
        stacked.set_last_revision_info(1, 'rev-base')
571
573
        stacked_relative = self.make_branch('stacked_relative',
572
574
                                            format=self.bzrdir_format)
573
 
        stacked_relative.set_stacked_on_url('../base')
 
575
        stacked_relative.set_stacked_on_url(base_tree.branch.user_url)
574
576
        stacked.set_last_revision_info(1, 'rev-base')
575
577
        self.start_logging_connections()
576
578