273
275
def __init__(self, relpath, transport, file_mode=None, access_mode=None,
274
factory=None, basis_knit=None, delta=True, create=False):
276
factory=None, basis_knit=DEPRECATED_PARAMETER, delta=True,
275
278
"""Construct a knit at location specified by relpath.
277
280
:param create: If not True, only open an existing knit.
281
288
super(KnitVersionedFile, self).__init__(access_mode)
282
289
assert access_mode in ('r', 'w'), "invalid mode specified %r" % access_mode
286
290
self.transport = transport
289
292
self.factory = factory or KnitAnnotateFactory()
290
293
self.writable = (access_mode == 'w')