[PATCH 0 of 1] hgweb: improve navigation

Nicolas Dumazet nicdumz at gmail.com
Sun Dec 27 20:33:27 CST 2009


Hello!

2009/12/25 Mads Kiilerich <mads at kiilerich.com>:
> Nicolas Dumazet wrote, On 12/25/2009 10:29 AM:
>>
>> Hello!
>>
>> I've always found confusing the current navigation bar: why is it showing
>>
>>    (0) -3000 -1000 -300 -100 -60 +60 +100 +300 tip
>>
>> and not inserting a marker to point you at your current position?
>> I would love to have instead:
>>
>>   (0) -3000 -1000 -300 -100 -60 [BULLET] +60 +100 +300 tip
>>
>
> I have always found these links very confusing. Adding a marker for the
> current location might help a bit.
>
> My problem seems to be that we are browsing through an arbitrary (though
> relatively stable) linearization of the DAG. Showing the latest (newest)
> revisions is very relevant, and having a way to show more revisions is also
> relevant. But when is it relevant to jump back and forward in the log? I can
> only imagine that that is relevant when I somehow know the revision (or
> hash) of a changeset. In that case it would be more relevant to have a input
> field where I can enter that (instead of not-completely-obvious
> modifications of the url).

I dont get your point about the arbitrary linearization. We're just
browsing revision numbers, using the same order that hg log is using.
I dont see anything wrong.

It is true, however, that the use case from +60 / +100 buttons are not
obvious. I however use those when reviewing changes. I like them
because I can roughly see where I am in the repository history. I'd
like to keep those. It should be rather trivial, though, to add an
hgweb option to pick between 1/2/3 paging and +60/+100/etc...

There is already the search box at the top of the UI to enter cset
hashes, not sure how we can improve the visibility.

> Another tricky thing is that the changelog shows the "reversed" changelog,
> with the latest changes with the highest numbers first. If the list is too
> short I want to see the next "page". Next page is often written as "+1" in
> other systems - but in this case I have to click "-60" to get that. I don't
> find that intuitive. And when the navigation is in the reversed list then I
> would expect the navigation bar to go the other way, from tip to 0.

Well, most recent change goes to the right, according to the usual
left-to-right reading habits?
I think that having a marker would help a lot to intuitively get the
change flow, dont you think it helps?

>
> So: I think it would be even better to just have links to previous page
> (higher revisions), next page (lower revisions) and first page (tip).
>
> /Mads
>
>



-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list