~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_fetch.py

  • Committer: Ross Lagerwall
  • Date: 2012-08-07 06:32:51 UTC
  • mto: (6437.63.5 2.5)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: rosslagerwall@gmail.com-20120807063251-x9p03ghg2ws8oqjc
Add bzrlib/locale to .bzrignore

bzrlib/locale is generated with ./setup.py build_mo which is in turn called
by ./setup.py build

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Tests for fetch between repositories of the same type."""
18
18
 
19
19
from bzrlib import (
20
 
    controldir,
 
20
    bzrdir,
21
21
    errors,
22
22
    gpg,
23
23
    remote,
67
67
        tree_a.add('foo', 'file1')
68
68
        tree_a.commit('rev1', rev_id='rev1')
69
69
        # create a knit-3 based format to fetch into
70
 
        f = controldir.format_registry.make_bzrdir('development-subtree')
 
70
        f = bzrdir.format_registry.make_bzrdir('dirstate-with-subtree')
71
71
        try:
72
72
            format = tree_a.branch.repository._format
73
73
            format.check_conversion_target(f.repository_format)
101
101
                              % b_bzrdir.transport)
102
102
        tree_b.commit('no change', rev_id='rev2')
103
103
        rev2_tree = knit3_repo.revision_tree('rev2')
104
 
        self.assertEqual(
105
 
            'rev1',
106
 
            rev2_tree.get_file_revision(rev2_tree.get_root_id()))
 
104
        self.assertEqual('rev1', rev2_tree.inventory.root.revision)
107
105
 
108
106
    def do_test_fetch_to_rich_root_sets_parents_correctly(self, result,
109
107
        snapshots, root_id=ROOT_ID, allow_lefthand_ghost=False):