~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2007-09-12 06:33:40 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20070912063340-rebmp08maq9lmiyl
Do not create many transient knit objects, saving 4% on commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
    """
409
409
 
410
410
    def __init__(self, relpath, transport, file_mode=None, access_mode=None,
411
 
                 factory=None, basis_knit=DEPRECATED_PARAMETER, delta=True,
412
 
                 create=False, create_parent_dir=False, delay_create=False,
413
 
                 dir_mode=None, index=None, access_method=None):
 
411
        factory=None, delta=True, create=False, create_parent_dir=False,
 
412
        delay_create=False, dir_mode=None, index=None, access_method=None):
414
413
        """Construct a knit at location specified by relpath.
415
414
        
416
415
        :param create: If not True, only open an existing knit.
421
420
            actually be created until the first data is stored.
422
421
        :param index: An index to use for the knit.
423
422
        """
424
 
        if deprecated_passed(basis_knit):
425
 
            warnings.warn("KnitVersionedFile.__(): The basis_knit parameter is"
426
 
                 " deprecated as of bzr 0.9.",
427
 
                 DeprecationWarning, stacklevel=2)
428
423
        if access_mode is None:
429
424
            access_mode = 'w'
430
425
        super(KnitVersionedFile, self).__init__(access_mode)