# HG changeset patch # User Martin von Zweigbergk # Date 1595438728 25200 # Node ID 0323972f78f376dc6f674206add4251e9386a35d # Parent 3f54242781e93ce1cec83961fb20bd5a35a28d9e subrepoutil: use relative path for looking up config `%include`s The code was already working with relative paths in practice, since it passed in a (repo-)relative path into its local `read()` function. So all that this patch actually does is to switch to rename variables so we use the same path by a different name. This gets us closer to removing the "absolute" path from the `include` callback. Differential Revision: https://phab.mercurial-scm.org/D8794 diff -r 3f54242781e9 -r 0323972f78f3 mercurial/subrepoutil.py --- a/mercurial/subrepoutil.py Wed Jul 22 00:13:02 2020 -0700 +++ b/mercurial/subrepoutil.py Wed Jul 22 10:25:28 2020 -0700 @@ -36,7 +36,7 @@ p = config.config() repo = ctx.repo() - def read(rel, f, sections=None, remap=None): + def read(f, abs, sections=None, remap=None): if f in ctx: try: data = ctx[f].data()