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

  • Committer: Jelmer Vernooij
  • Date: 2017-08-01 01:44:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6746.
  • Revision ID: jelmer@jelmer.uk-20170801014441-hnh9tdmil2o3vqek
Avoid explicitly setting file ids or guard it by checking
WorkingTree.supports_setting_file_ids() and skipping if it's not set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        """Test that we can create a checkout from an earlier revision."""
46
46
        tree1 = self.make_branch_and_tree('base')
47
47
        self.build_tree(['base/a'])
48
 
        tree1.add(['a'], ['a-id'])
 
48
        tree1.add(['a'])
49
49
        tree1.commit('first', rev_id='rev-1')
50
50
        self.build_tree(['base/b'])
51
 
        tree1.add(['b'], ['b-id'])
 
51
        tree1.add(['b'])
52
52
        tree1.commit('second', rev_id='rev-2')
53
53
 
54
54
        tree2 = tree1.branch.create_checkout('checkout', revision_id='rev-1')