def _commits(self, head='HEAD'):
        pending_commits = [head]
        history = []
        while pending_commits != []:
            head = pending_commits.pop(0)
            try:
                commit = self[head]
            except KeyError:
                raise KeyError(head)
            if type(commit) != Commit:
                raise TypeError(commit)
            if commit in history:
                continue
            i = 0
            for known_commit in history:
                if known_commit.commit_time > commit.commit_time:
                    break
                i += 1
            history.insert(i, commit)
            pending_commits += commit.parents
        return history
Return image data from open file as numpy array.
dataset/ETHPy150Open rsgalloway/grit/grit/repo/local.py/Local._commits--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/util/netpbmfile.py/NetpbmFile._read_data