/**
  * Load and cache the set of branch mappings for the repository.
  */
 function load_mappings()
 {
     if (count($this->mappings) < 1) {
         $this->mappings = SourceMapping::load_by_repo($this->id);
     }
     return $this->mappings;
 }