846
851
def _check_add(self, key, lines, random_id, check_content):
847
852
"""check that version_id and lines are safe to add."""
851
857
# Technically this could be avoided if we are happy to allow duplicate
852
858
# id insertion when other things than bzr core insert texts, but it
853
859
# seems useful for folk using the knit api directly to have some safety