def METHOD_NAME(reponame, rw_userids, ro_userids):
    """
    Update/create this repository on punch.csil, with permissions as given.
    """
    if not settings.SVN_DB_CONNECT:
        # don't try if not configured
        return
    db = _db_conn()
    rw = ','.join(rw_userids)
    ro = ','.join(ro_userids)
    db.execute('SELECT count(*) FROM '+SVN_TABLE+' WHERE `repository`=%s', (reponame,))
    count = db.fetchone()[0]
    if count == 0:
        # doesn't exist: create
        if len(rw_userids)==0 and len(ro_userids)==0:
            # don't create if not needed
            pass
        else:
            db.execute('INSERT INTO '+SVN_TABLE+' (`repository`, `emplid`, `read`, `readandwrite`, `modified`) VALUES (%s, %s, %s, %s, %s)', (reponame, '', ro, rw, 'Y'))
    else:
        # already there: update
        db.execute('UPDATE '+SVN_TABLE+' set `read`=%s, `readandwrite`=%s, `modified`=%s WHERE `repository`=%s', (ro, rw, 'Y', reponame))