~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Aaron Bentley
  • Date: 2006-02-24 17:05:23 UTC
  • mto: (2027.1.2 revert-subpath-56549)
  • mto: This revision was merged to the branch mainline in revision 1595.
  • Revision ID: abentley@panoramicfeedback.com-20060224170523-9ec3bd5c7a1ed4c7
Got transform.apply to list modified paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        transform.create_file('contents', trans_id2)
78
78
        transform.set_executability(False, trans_id2)
79
79
        transform.version_file('my_pretties2', trans_id2)
80
 
        transform.apply()
 
80
        modified_paths = transform.apply().modified_paths
81
81
        self.assertEqual('contents', self.wt.get_file_byname('name').read())
82
82
        self.assertEqual(self.wt.path2id('name'), 'my_pretties')
83
83
        self.assertIs(self.wt.is_executable('my_pretties'), True)
84
84
        self.assertIs(self.wt.is_executable('my_pretties2'), False)
85
85
        self.assertEqual('directory', file_kind(self.wt.abspath('oz')))
 
86
        self.assertEqual(len(modified_paths), 3)
 
87
        tree_mod_paths = [self.wt.id2abspath(f) for f in 
 
88
                          ('ozzie', 'my_pretties', 'my_pretties2')]
 
89
        self.assertSubset(tree_mod_paths, modified_paths)
86
90
        # is it safe to finalize repeatedly?
87
91
        transform.finalize()
88
92
        transform.finalize()