def addItem(self, item, message=None):
        if message is None:
            message = 'Adding item %s' % item.path
        try:
            v = Version.new(repo=self)
            v.addItem(item)
            v.save(message)
        except VersionError, e:
            raise RepoError(e)
add a new Item class object
dataset/ETHPy150Open rsgalloway/grit/grit/repo/local.py/Local.addItem