[patch 2/3] Support repository priorities