[issue623] Make hgweb annotate link to target line numbers
Thomas Arendsen Hein
mercurial-bugs at selenic.com
Mon Jul 9 13:24:26 UTC 2007
New submission from Thomas Arendsen Hein <thomas at intevation.de>:
Moved from issue506 (annotation enhancement to show line-no at first appearance):
Extend hgweb annotation to be able to jump to the correct line in the target
file, e.g. line 83 in current mercurial/localrepo.py was created in changeset
d7df759d0e97 in file mercurial/hg.py line 337, therefore line 83 in
http://hg.intevation.org/mercurial/crew/annotate/8e503fa54d2d/mercurial/localrepo.py
should link to something like
http://hg.intevation.org/mercurial/crew/annotate/d7df759d0e97/mercurial/hg.py#337
(so only the #337 part and the corresponding anchors are missing)
Calculating the line numbers costs about 20-25% additional wallclock time and
annotate already isn't the fastest operation. But I think this way it will be
far more useful.
So I see two options:
- Have it always enabled
- Provide a [web] config option to disable it permanently
If this info is not calculated by default but the user has to click on "annotate
with line numbers", then you will often need 125% additional time (instead of
25%) everytime a user tries to track down a certain line in the history.
I'd vote for "always enabled", because it is simpler and people having limited
CPU would already suffer from annotation, too.
----------
assignedto: ThomasAH
messages: 3469
nosy: ThomasAH, alexis, brendan, foozy, mpm, pmezard
priority: feature
status: unread
title: Make hgweb annotate link to target line numbers
topic: hgweb
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue623>
____________________________________________________
More information about the Mercurial-devel
mailing list