~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-28 10:30:12 UTC
  • mfrom: (5741.1.12 move-interbranch-fetch2)
  • Revision ID: pqm@pqm.ubuntu.com-20110428103012-4mp8o2h32tluszv7
(jelmer) Make Branch.fetch() no longer take a fetch_spec (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
 
564
564
    def _maybe_fetch(self, source, target, revision_id):
565
565
        if not source.repository.has_same_location(target.repository):
566
 
            try:
567
 
                tags_to_fetch = set(source.tags.get_reverse_tag_dict())
568
 
            except errors.TagsNotSupported:
569
 
                tags_to_fetch = None
570
 
            fetch_spec = _mod_graph.NotInOtherForRevs(target.repository,
571
 
                source.repository, [revision_id],
572
 
                if_present_ids=tags_to_fetch).execute()
573
 
            target.fetch(source, fetch_spec=fetch_spec)
 
566
            target.fetch(source, revision_id)
574
567
 
575
568
    def find_base(self):
576
569
        revisions = [_mod_revision.ensure_null(self.this_basis),