Rewrite copy-between-repo

100% smarter with more sanity checking