def addCommit(self, commit):
        if commit in self.commits:
            return True
        # 100 should be under the URL length limit
        if len(self.commits) >= 100:
            return False
        self.commits.append(commit)
        return True
dataset/ETHPy150Open openstack/gertty/gertty/sync.py/SyncChangesByCommitsTask.addCommit/original