reposync: have flags shift to be able to see what each flag reads