~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: John Arbash Meinel
  • Date: 2010-01-12 04:31:21 UTC
  • mto: (4634.119.4 2.0)
  • mto: This revision was merged to the branch mainline in revision 4954.
  • Revision ID: john@arbash-meinel.com-20100112043121-jazp286iwitj2ro8
Fix a test that used 'adjust_path' to set the root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2644
2644
        preview = self.get_empty_preview()
2645
2645
        root = preview.new_directory('', ROOT_PARENT, 'tree-root')
2646
2646
        # FIXME: new_directory should mark root.
2647
 
        preview.adjust_path('', ROOT_PARENT, root)
 
2647
        preview.fixup_new_roots()
2648
2648
        preview_tree = preview.get_preview_tree()
2649
2649
        file_trans_id = preview.new_file('a', preview.root, 'contents',
2650
2650
                                         'a-id')