'Give changes for single file only. do not return \'equal\' hunks.'

def single_changes(self, textindex, texts):

    if (textindex in (0, 2)):
        seq = (textindex / 2)
        for cs in self.all_changes(texts):
            c = cs[seq]
            if c:
                (yield (self.reversemap[c[0]], c[3], c[4], c[1], c[2], 1))
    else:
        for cs in self.all_changes(texts):
            if cs[0]:
                c = cs[0]
                (yield (c[0], c[1], c[2], c[3], c[4], 0))
            elif cs[1]:
                c = cs[1]
                (yield (c[0], c[1], c[2], c[3], c[4], 2))
