In general, the current directory overrides ones higher up in the path.
$HOME/.reviewboardrc is a special case that can override anything, even the
one in the repo.

David

On Wed, Dec 4, 2019 at 8:07 PM Jean-Christian Imbeault <
[email protected]> wrote:

> 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
>
> A comment in the source code helped me figure this out:
>
> In /filesystem.py:
>
> 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
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/36d72cd5-16e1-47be-b5f2-38f9d8b8c970%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/36d72cd5-16e1-47be-b5f2-38f9d8b8c970%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAFS3VNUjGpFkgfuDWj6UD0kdTe%2BoXWO4SPV-yezBzXuXn7_hCA%40mail.gmail.com.

Reply via email to