~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-08 00:24:38 UTC
  • mfrom: (1907.1.9 no-special-root)
  • Revision ID: pqm@pqm.ubuntu.com-20060808002438-4b8baf2d9282e154
Represent root entries using InventoryDirectory, not RootEntry

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
                        self.tree_kind(t) == 'directory'])
508
508
        for trans_id in self._removed_id:
509
509
            file_id = self.tree_file_id(trans_id)
510
 
            if self._tree.inventory[file_id].kind in ('directory', 
511
 
                                                      'root_directory'):
 
510
            if self._tree.inventory[file_id].kind == 'directory':
512
511
                parents.append(trans_id)
513
512
 
514
513
        for parent_id in parents:
1071
1070
        contents_mod = True
1072
1071
        meta_mod = False
1073
1072
    if has_contents is True:
1074
 
        real_e_kind = entry.kind
1075
 
        if real_e_kind == 'root_directory':
1076
 
            real_e_kind = 'directory'
1077
 
        if real_e_kind != working_kind:
 
1073
        if entry.kind != working_kind:
1078
1074
            contents_mod, meta_mod = True, False
1079
1075
        else:
1080
1076
            cur_entry._read_tree_state(working_tree.id2path(file_id),