make repo switching work for arbitrary pathnames
make changeTabs only care about hash