tag should links to tag name in gitweb

Weijun Max Wang Weijun.Wang at Sun.COM
Wed Feb 27 02:11:18 CST 2008


Hi All

I like hgweb and find it very useful for code review.

However, there's a small issue. I'm using mq now. Since the rev id for a
given patch will change after a qpush/qpop/qrefresh, the changeset URL
given to the code reviewer changes.

We know that each mq patch is automatically tagged with its patch name.
Then, how about let the tags shown on the gitweb page to link to pages
with the tag name as the rev name? This link will never change as long
as you do not change the patch name.

Just make a small change in templates/gitweb/map:

-tagtag = '<span class="tagtag" title="{name}">{name}</span> '
+tagtag = '<a href="{url}rev/{name}"><span class="tagtag"
title="{name}">{name}</span></a> '

Thanks
Weijun


More information about the Mercurial mailing list