#212731 by boombatower: rewrote source_revisions code and table, redesigned delete commit and repository to handle the new changes.