~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Vincent Ladeuil
  • Date: 2011-08-12 09:49:24 UTC
  • mfrom: (6015.9.10 2.4)
  • mto: This revision was merged to the branch mainline in revision 6066.
  • Revision ID: v.ladeuil+lp@free.fr-20110812094924-knc5s0g7vs31a2f1
Merge 2.4 into trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1540
1540
        # For bzr native formats must_fetch is just the tip, and if_present_fetch
1541
1541
        # are the tags.
1542
1542
        must_fetch = set([self.last_revision()])
1543
 
        try:
1544
 
            if_present_fetch = set(self.tags.get_reverse_tag_dict())
1545
 
        except errors.TagsNotSupported:
1546
 
            if_present_fetch = set()
 
1543
        if_present_fetch = set()
 
1544
        c = self.get_config()
 
1545
        include_tags = c.get_user_option_as_bool('branch.fetch_tags',
 
1546
                                                 default=False)
 
1547
        if include_tags:
 
1548
            try:
 
1549
                if_present_fetch = set(self.tags.get_reverse_tag_dict())
 
1550
            except errors.TagsNotSupported:
 
1551
                pass
1547
1552
        must_fetch.discard(_mod_revision.NULL_REVISION)
1548
1553
        if_present_fetch.discard(_mod_revision.NULL_REVISION)
1549
1554
        return must_fetch, if_present_fetch