784
788
if other.numversions() == 0:
785
789
return # nothing to update, easy
786
792
# work through in index order to make sure we get all dependencies
787
793
for other_idx, name in enumerate(other._names):
788
797
# TODO: If all the parents of the other version are already
789
798
# present then we can avoid some work by just taking the delta
790
799
# and adjusting the offsets.
793
800
new_parents = self._imported_parents(other, other_idx)
794
801
lines = other.get_lines(other_idx)
795
802
sha1 = other._sha1s[other_idx]