[issue2362] filelog navigation incomplete if tip does not contain newest file version

Thomas Arendsen Hein bugs at mercurial.selenic.com
Sat Sep 4 16:11:52 CDT 2010


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

The solution for issue189 (hgweb: add rev navigation to file log) introduced
a problem file filelog navigation in hgweb:

In URLs like http://hg.example.com/repo/log/FOO/thefile the value of FOO is
always interpreted as a changelog id first and filelog id second.
Therefore "tip" does not refer to the highest version of a file, but to the
state of the file as included in tip, which might be older if branches are
used and the file is available both, in tip and in the newer branch.

If the file is not available in tip, the fallback to filelog is used, so the
newest version of the file is found.

To make hgweb behave consistently, "tip" for a single file should always
refer to the filelog tip, not the changelog tip.

I think this change should go to stable.

----------
assignedto: ThomasAH
messages: 13560
nosy: ThomasAH
priority: bug
status: unread
title: filelog navigation incomplete if tip does not contain newest file version
topic: hgweb

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2362>
____________________________________________________


More information about the Mercurial-devel mailing list