[PATCH] hgweb: allow switching to original style when other style is used as default
Thomas Arendsen Hein
thomas at intevation.de
Wed Mar 29 07:10:32 UTC 2006
* TK Soh <teekaysoh at gmail.com> [20060329 08:58]:
> After I set the default hgweb style to gitweb, I can no longer move
> around pages with the original style...
>
> Patch in attachment.
> # HG changeset patch
> # User TK Soh <teekaysoh at yahoo.com>
> # Node ID d7cea4105016c06d96cc8a0ed4c76530e5ea4e31
> # Parent 416f9e9e5f1b859e5f579d106902cb26c9b93bc6
> hgweb: allow switching to original style when other style is used as default
>
> hardcode "style=" into links in pages of original style so that
> we are allowed to switch back to the original style when, say,
> gitweb has been used as the default style.
I don't like this approach.
It would be better to add ;style=something only if 'something'
doesn't match the default style.
This would make gitweb URLs shorter, too, if someone set this to be
the default style.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list