/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2010-06-20 21:14:49 UTC
  • mto: This revision was merged to the branch mainline in revision 5308.
  • Revision ID: robertc@robertcollins.net-20100620211449-9ns38l9zvdxd1n96
More clarity about how to use the lazy registration feature.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1727
1727
 
1728
1728
 
1729
1729
class MetaDirBranchFormatFactory(registry._LazyObjectGetter):
1730
 
    """A factory for a BranchFormat object, permitting simple lazy registration."""
 
1730
    """A factory for a BranchFormat object, permitting simple lazy registration.
 
1731
    
 
1732
    While none of the built in BranchFormats are lazy registered yet,
 
1733
    bzrlib.tests.test_branch.TestMetaDirBranchFormatFactory demonstrates how to
 
1734
    use it, and the bzr-loom plugin uses it as well (see
 
1735
    bzrlib.plugins.loom.formats).
 
1736
    """
1731
1737
 
1732
1738
    def __init__(self, format_string, module_name, member_name):
1733
1739
        """Create a MetaDirBranchFormatFactory.