403
403
"""See VersionedFile.copy_to()."""
404
404
# copy the current index to a temp index to avoid racing with local
408
409
f = self._data._open_file()
413
414
# move the copied index into place
414
415
transport.move(name + INDEX_SUFFIX + '.tmp', name + INDEX_SUFFIX)
416
417
def create_empty(self, name, transport, mode=None):
417
return KnitVersionedFile(name, transport, factory=self.factory, delta=self.delta, create=True)
418
return KnitVersionedFile(name, transport, factory=self.factory,
419
421
def _fix_parents(self, version, new_parents):
420
422
"""Fix the parents list for version.