~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:
66
66
from bzrlib.trace import mutter, mutter_callsite, note, is_quiet
67
67
 
68
68
 
69
 
BZR_BRANCH_FORMAT_4 = "Bazaar-NG branch, format 0.0.4\n"
70
 
BZR_BRANCH_FORMAT_5 = "Bazaar-NG branch, format 5\n"
71
 
BZR_BRANCH_FORMAT_6 = "Bazaar Branch Format 6 (bzr 0.15)\n"
72
 
 
73
 
 
74
69
class Branch(controldir.ControlComponent):
75
70
    """Branch holding a history of revisions.
76
71
 
1545
1540
        # For bzr native formats must_fetch is just the tip, and if_present_fetch
1546
1541
        # are the tags.
1547
1542
        must_fetch = set([self.last_revision()])
1548
 
        try:
1549
 
            if_present_fetch = set(self.tags.get_reverse_tag_dict())
1550
 
        except errors.TagsNotSupported:
1551
 
            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
1552
1552
        must_fetch.discard(_mod_revision.NULL_REVISION)
1553
1553
        if_present_fetch.discard(_mod_revision.NULL_REVISION)
1554
1554
        return must_fetch, if_present_fetch
3165
3165
 
3166
3166
 
3167
3167
class Converter7to8(object):
3168
 
    """Perform an in-place upgrade of format 6 to format 7"""
 
3168
    """Perform an in-place upgrade of format 7 to format 8"""
3169
3169
 
3170
3170
    def convert(self, branch):
3171
3171
        format = BzrBranchFormat8()