mergedVersions = [[versions[0]]]
i = 0
while i < len(versions):
    if versions[i].match(mergedVersions[-1][-1]):
        mergedVersions[-1].append(versions[i])
else:
    mergedVersions.append([versions[i]])
i += 1
Revision information mismatch after sccs2svn conversion