Create an hgweb style based upon another style without copying all the base style files

Angel Ezquerra Moreu angel.ezquerra at gmail.com
Fri Mar 2 05:31:49 CST 2012


Hi,

Is it possible to create a new hgweb template that is based upon an
existing template, without copying the base template files?

What I mean is that I'd like to somehow tell mercurial that a template
is based upon another. If hgweb does not find one of the template
files in the selected template folder I'd like it to look for the
missing file on the base template's template folder?

My use case is that I'd like to create a new template that is a
slightly modified version of one of the existing templates (e.g.
Monoblue). I can copy the templates/monoblue folder and make my
changes then if I update mercurial I'll need to repeat the process.

Instead I'd like to only copy the files that I will modify and tell
hgweb to use another template as a fallback.

Is this possible? It seems that this would allow to greatly increase
code reuse when creating templates.

Cheers,

Angel


More information about the Mercurial-devel mailing list