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