Using %include

Ernie Rael err at raelity.com
Wed Feb 23 19:33:52 UTC 2022


Greetings,

I'm not sure if I'm running into a bug,

I'm experimenting with color themes (thanks again Marcin and Craig). I 
thought using an "include theme" mechanism would be a good way to go.

Sure enough, found mercurial's "%include", so I did

    [color]
    %include ~/themes/play

I was surprised when it didn't work. "hg config --source" doesn't show 
things in the order they are encountered. Putting [color] into theme 
file, fixed the issue. Is this expected? When it doesn't work "hg config 
--source" shows

    themes/play:3: .status.modified=yellow

and when it works (with [color] in the included file)

    themes/play:4: color.status.modified=yellow

I don't see any mention of this behavior in "he help config" where it 
discusses %include.

-ernie



More information about the Mercurial mailing list