~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_workingtree.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-19 22:54:30 UTC
  • mfrom: (3006 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3008.
  • Revision ID: bialix@ukr.net-20071119225430-x0ewosrsagis0yno
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
745
745
        # if we write write an inventory then do a walkdirs we should get back
746
746
        # missing entries, and actual, and unknowns as appropriate.
747
747
        self.build_tree(['present', 'unknown'])
748
 
        inventory = Inventory(tree.path2id(''))
 
748
        inventory = Inventory(tree.get_root_id())
749
749
        inventory.add_path('missing', 'file', 'missing-id')
750
750
        inventory.add_path('present', 'file', 'present-id')
751
751
        # there is no point in being able to write an inventory to an unlocked
758
758
            present_stat = os.lstat('present')
759
759
            unknown_stat = os.lstat('unknown')
760
760
            expected_results = [
761
 
                (('', tree.inventory.root.file_id),
 
761
                (('', tree.get_root_id()),
762
762
                 [('missing', 'missing', 'unknown', None, 'missing-id', 'file'),
763
763
                  ('present', 'present', 'file', present_stat, 'present-id', 'file'),
764
764
                  ('unknown', 'unknown', 'file', unknown_stat, None, None),