Open Bug 466017 Opened 16 years ago Updated 7 years ago

Need a simple way to go to "the revision before this line was last changed" in hgweb annotate

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: bzbarsky, Unassigned)

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/802] )

In Bonsai, if I'm looking at blame for a file I can just look at the revision number listed for the line and edit the url to the previous revision.

In hgweb annotate, I think I can click on the line number to get the changeset, then click on all the parent links, then load the parent changesets versions of the file I want.  This takes a lot longer, unfortunately.
I don't know if the parent changeset is even available to the templater. If not, we should make it available from hg.
(In reply to comment #0)
> In hgweb annotate, I think I can click on the line number to get the changeset,
> then click on all the parent links, then load the parent changesets versions of
> the file I want.  This takes a lot longer, unfortunately.

How about replacing the hg hash in url with normal rev number (after author_name@ in changed line)?
I think a better solution would be to wait for newer hg, then use some jQuery overlay div to show more info on the last revision to change this line (including it's parent, for example).
Stefan, how would that help?  The rev number and the parent have nothing to do with each other.
Because then you can put rev - 1 in the URL bar?
But that doesn't help with seeing the code before the changeset landed, since rev-1 isn't necessarily the parent.  What part of that was unclear?

The key is that CVS history is linear, so going back one rev number actually means something.  hg history is anything but linear.  And rev numbers are global across all branches in the repository, to boot.
(In reply to comment #6)
Ah, indeed, sorry.
Product: mozilla.org → Release Engineering
Product: Release Engineering → Developer Services
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/74]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/74] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/802] [kanban:engops:https://kanbanize.com/ctrl_board/6/74]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/802] [kanban:engops:https://kanbanize.com/ctrl_board/6/74] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/802]
QA Contact: hwine → klibby
You need to log in before you can comment on or make changes to this bug.