~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Robert Collins
  • Date: 2005-09-06 11:09:03 UTC
  • mfrom: (1178)
  • mto: (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: robertc@robertcollins.net-20050906110903-b6be7bd6102403cb
really merge mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
            return True
197
197
        return self.tree.inventory.has_id(file_id)
198
198
 
 
199
    def has_or_had_id(self, file_id):
 
200
        if file_id == self.tree.inventory.root.file_id:
 
201
            return True
 
202
        return self.tree.inventory.has_id(file_id)
 
203
 
199
204
    def readonly_path(self, id):
200
205
        if id not in self.tree:
201
206
            return None
299
304
        merge_inner(this_branch, other_tree, base_tree, tempdir, 
300
305
                    ignore_zero=ignore_zero, backup_files=backup_files, 
301
306
                    merge_type=merge_type, interesting_ids=interesting_ids)
302
 
        if base_is_ancestor and other_rev_id is not None:
 
307
        if base_is_ancestor and other_rev_id is not None\
 
308
            and other_rev_id not in this_branch.revision_history():
303
309
            this_branch.add_pending_merge(other_rev_id)
304
310
    finally:
305
311
        shutil.rmtree(tempdir)