/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Andrew Bennetts
  • Date: 2007-12-21 05:52:38 UTC
  • mfrom: (3137 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3138.
  • Revision ID: andrew.bennetts@canonical.com-20071221055238-0wjubfut943uzovf
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
        """
292
292
        raise NotImplementedError(self.annotate_iter)
293
293
 
294
 
    def plan_file_merge(self, file_id, other):
 
294
    def plan_file_merge(self, file_id, other, base=None):
295
295
        """Generate a merge plan based on annotations.
296
296
 
297
297
        If the file contains uncommitted changes in this tree, they will be
303
303
        vf = versionedfile._PlanMergeVersionedFile(file_id)
304
304
        last_revision_a = self._get_file_revision(file_id, vf, 'this:')
305
305
        last_revision_b = other._get_file_revision(file_id, vf, 'other:')
306
 
        return vf.plan_merge(last_revision_a, last_revision_b)
 
306
        if base is None:
 
307
            last_revision_base = None
 
308
        else:
 
309
            last_revision_base = base._get_file_revision(file_id, vf, 'base:')
 
310
        return vf.plan_merge(last_revision_a, last_revision_b,
 
311
                             last_revision_base)
307
312
 
308
313
    def _get_file_revision(self, file_id, vf, tree_revision):
309
314
        def file_revision(revision_tree):