I have several mr configurations in different directories (this helps me to synchronize groups of repositories gradually).
In man mr
, it is stated
--config mrconfig
Use the specified mrconfig file. The default is to use both ~/.mrconfig as well as look for a .mrconfig file in the
current directory, or in one of its parent directories."
How can I skip checking all repositories in ~/.mrconfig if I explicitly ask to use another config? I managed to solve that with -n
option, like
mr -c mrconfig -t -n 1 status
but -n 1
looks a bit redundant and wrong for such case (I know that I can skip the -t flag with .mrtrust).
~/.mrconfig
file. So, until a better way to do this gets added, I think what you need is to rename~/.mrconfig
to~/.mrconfig-global
, make it include your other mr config files, and then use-c ~/.mrconfig-global
but when you want a different set of repos, you can use-c
with the mr config file for the other set. Instead of using-c
, you could also make~/.mrconfig
a symlink to a mr config file for your "current" subset of repos.config-flexibility
branch in my fork on github now has a patch that might help with this. I need to audit it for unintended consequences before I can include it in the main version.