1. A system for a distributed repository, comprising: an input interface to receive a request to change a portion of code; and a processor to: determine a change reference and an existing reference; indicate to lock one or more repositories; determine whether swapping references is approved by a vote; in the event that swapping references is approved by a vote: swap the references; and to indicate to unlock the one or more repositories.