~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2007-08-14 05:05:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2722.
  • Revision ID: mbp@sourcefrog.net-20070814050549-fgxov55ryq2terjt
(broken) start switching format to dirstate-tags

Show diffs side-by-side

added added

removed removed

Lines of Context:
1139
1139
 
1140
1140
 
1141
1141
class BzrBranchFormat6(BzrBranchFormat5):
1142
 
    """Branch format with last-revision
 
1142
    """Branch format with last-revision and tags.
1143
1143
 
1144
1144
    Unlike previous formats, this has no explicit revision history. Instead,
1145
1145
    this just stores the last-revision, and the left-hand history leading
1146
1146
    up to there is the history.
1147
1147
 
1148
1148
    This format was introduced in bzr 0.15
 
1149
    and became the default in 0.91.
1149
1150
    """
1150
1151
 
1151
1152
    def get_format_string(self):
1264
1265
 
1265
1266
# formats which have no format string are not discoverable
1266
1267
# and not independently creatable, so are not registered.
1267
 
__default_format = BzrBranchFormat5()
 
1268
__default_format = BzrBranchFormat6()
1268
1269
BranchFormat.register_format(__default_format)
1269
1270
BranchFormat.register_format(BranchReferenceFormat())
1270
 
BranchFormat.register_format(BzrBranchFormat6())
 
1271
BranchFormat.register_format(BzrBranchFormat5())
1271
1272
BranchFormat.set_default_format(__default_format)
1272
1273
_legacy_formats = [BzrBranchFormat4(),
1273
1274
                   ]