~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Martin Pool
  • Date: 2007-02-07 12:41:45 UTC
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070207124145-qufbufe41sm6fqrf
Get rid of RepositoryFormat*_instance objects.  Instead the format
registry can hold either format objects or factories that create them, and
its get() method calls that if needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
 
359
359
    This format was introduced in bzr 0.8.
360
360
    """
 
361
 
361
362
    def get_format_string(self):
362
363
        """See RepositoryFormat.get_format_string()."""
363
364
        return "Bazaar-NG Knit Repository Format 1"
427
428
                               _revision_store=_revision_store,
428
429
                               control_store=control_store,
429
430
                               text_store=text_store)
430
 
 
431
 
 
432
 
RepositoryFormatKnit1_instance = RepositoryFormatKnit1()
433
 
RepositoryFormatKnit2_instance = RepositoryFormatKnit2()