/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/test_remote.py

  • Committer: Aaron Bentley
  • Date: 2008-11-18 04:47:17 UTC
  • mto: This revision was merged to the branch mainline in revision 3840.
  • Revision ID: aaron@aaronbentley.com-20081118044717-t6tx15x58dl3d1f9
Add tests for get_parent_map

Show diffs side-by-side

added added

removed removed

Lines of Context:
1750
1750
                'message')
1751
1751
        finally:
1752
1752
            remote_repo.unlock()
 
1753
 
 
1754
    def test_stacked_get_parent_map(self):
 
1755
        smart_server = server.SmartTCPServer_for_testing()
 
1756
        smart_server.setUp()
 
1757
        self.addCleanup(smart_server.tearDown)
 
1758
        tree1 = self.make_branch_and_tree('tree1')
 
1759
        tree1.commit('rev1', rev_id='rev1')
 
1760
        tree2 = self.make_branch_and_tree('tree2', format='1.6')
 
1761
        tree2.branch.set_stacked_on_url(tree1.branch.base)
 
1762
        branch2 = Branch.open(smart_server.get_url() + '/tree2')
 
1763
        branch2.lock_read()
 
1764
        self.addCleanup(branch2.unlock)
 
1765
        repo = branch2.repository
 
1766
        self.assertEqual(['rev1'], repo.get_parent_map(['rev1']).keys())