I though that .reviewboardrc files in the current directory took precedence over files higher up the path, but it looks like I've got it backwards.
So if you have a $HOME/.reviewboardrc, it will override whatever settings you might have in ./.reviewboardrc
def get_config_paths():
"""Return the paths to each .reviewboardrc influencing the cwd.
A list of paths to .reviewboardrc files will be returned, where
each subsequent list entry should take precedence over the previous.
i.e. configuration found in files further down the list will take
precedence.
"""
config_paths = []
for path in walk_parents(os.getcwd()):
filename = os.path.join(path, CONFIG_FILE)
if os.path.exists(filename):
config_paths.insert(0, filename)
filename = os.path.join(get_home_path(), CONFIG_FILE)
if os.path.exists(filename):
config_paths.append(filename)
return config_paths