~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Robert Collins
  • Date: 2009-03-03 21:12:06 UTC
  • mto: (4083.1.2 robert-rollup)
  • mto: This revision was merged to the branch mainline in revision 4084.
  • Revision ID: robertc@robertcollins.net-20090303211206-cuzsauuklqtg4389
Audit and make sure we are registering network_name's as factories, not instances.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1832
1832
    def register_format(klass, format):
1833
1833
        klass._formats[format.get_format_string()] = format
1834
1834
        # bzr native formats have a network name of their format string.
1835
 
        network_format_registry.register(format.get_format_string(), format)
 
1835
        network_format_registry.register(format.get_format_string(), format.__class__)
1836
1836
 
1837
1837
    @classmethod
1838
1838
    def register_control_format(klass, format):