~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge_core.py

  • Committer: abentley
  • Date: 2005-10-14 04:53:26 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@lappy-20051014045326-97313b563161422e
Got even closer to standard Tree interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
    cset = changeset_function(base, other, interesting_ids)
108
108
    new_cset = make_merge_changeset(cset, this, base, other, 
109
109
                                    conflict_handler, merge_factory)
110
 
    result = apply_changeset(new_cset, invert_invent(this.tree.inventory),
 
110
    result = apply_changeset(new_cset, invert_invent(this.inventory),
111
111
                             this.basedir, conflict_handler, False)
112
112
    conflict_handler.finalize()
113
113
    return result
160
160
        assert hasattr(tree, "__contains__"), "%s" % tree
161
161
        if not tree.has_or_had_id(file_id):
162
162
            return (None, None, "")
163
 
        entry = tree.tree.inventory[file_id]
 
163
        entry = tree.inventory[file_id]
164
164
        my_dir = tree.id2path(entry.parent_id)
165
165
        if my_dir is None:
166
166
            my_dir = ""