~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-02-03 02:22:57 UTC
  • mfrom: (5639.1.2 doc-lint-2.4)
  • Revision ID: pqm@pqm.ubuntu.com-20110203022257-caoghu6higq98tak
(spiv) Link to What's New in 2.4 (rather than 2.3) in doc index,
 and add missing comma in doc. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2882
2882
    _formats = {}
2883
2883
    """The known formats."""
2884
2884
 
2885
 
    _extra_formats = []
2886
 
    """Extra formats that can not be used in a metadir."""
2887
 
 
2888
2885
    requires_rich_root = False
2889
2886
 
2890
2887
    upgrade_recommended = False
2947
2944
        klass._formats[format.get_format_string()] = format
2948
2945
 
2949
2946
    @classmethod
2950
 
    def register_extra_format(klass, format):
2951
 
        klass._extra_formats.append(format)
2952
 
 
2953
 
    @classmethod
2954
 
    def unregister_extra_format(klass, format):
2955
 
        klass._extra_formats.remove(format)
2956
 
 
2957
 
    @classmethod
2958
 
    def get_formats(klass):
2959
 
        return klass._formats.values() + klass._extra_formats
2960
 
 
2961
 
    @classmethod
2962
2947
    def set_default_format(klass, format):
2963
2948
        klass._default_format = format
2964
2949
 
3192
3177
WorkingTreeFormat.register_format(WorkingTreeFormat4())
3193
3178
WorkingTreeFormat.register_format(WorkingTreeFormat3())
3194
3179
WorkingTreeFormat.set_default_format(__default_format)
3195
 
# Register extra formats which have no format string are not discoverable
3196
 
# and not independently creatable. They are implicitly created as part of
3197
 
# e.g. older Bazaar formats or foreign formats.
3198
 
WorkingTreeFormat.register_extra_format(WorkingTreeFormat2())
 
3180
# formats which have no format string are not discoverable
 
3181
# and not independently creatable, so are not registered.
 
3182
_legacy_formats = [WorkingTreeFormat2(),
 
3183
                   ]