235
229
def idx_to_name(self, version):
236
230
return self._names[version]
239
232
def _check_repeated_add(self, name, parents, text, sha1):
240
233
"""Check that a duplicated add is OK.
242
235
If it is, return the (old) index; otherwise raise an exception.
255
243
def add(self, name, parents, text, sha1=None):
256
244
"""Add a single text on top of the weave.