This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: hg.python.org/cpython "browse" link defaults to 2.7
Type: enhancement Stage: resolved
Components: Devguide Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: chris.jerdonek, ezio.melotti, pitrou, python-dev
Priority: normal Keywords:

Created on 2012-07-29 20:17 by chris.jerdonek, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)
msg166810 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-07-29 20:17
I'm not sure if I'm filing this in the right place since I don't see hg.python.org in the tracker "components" list, but if one clicks on the "Browse online" link of the Dev Guide here:

http://docs.python.org/devguide/

One is taken to--

http://hg.python.org/cpython/

(which is actually the list of revisions rather than the browser).

But if one then clicks on the "browse" link in the left column, it seems to default to the 2.7 branch.

It is a bit confusing because the browser does not say the name of the branch at the top, which can lead to unknowingly browsing the wrong branch.

So there may be three issues here: (1) the Dev Guide links to the revision list rather than directly to the browser, (2) browsing defaults to browsing 2.7 rather than the default branch, and (3) the branch name should be diplayed somewhere on the page when browsing (or better yet, also in the URL itself).
msg166820 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-07-29 22:10
New changeset 0529e2062ec7 by Ezio Melotti in branch 'default':
#15491: link to the file list of the "default" branch.
http://hg.python.org/devguide/rev/0529e2062ec7
msg166821 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-29 22:11
The "snapshot of py3k" link has the same issue.
msg166824 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-07-29 22:23
New changeset 54ec1b493006 by Ezio Melotti in branch 'default':
#15491: change a couple more links to point to the "default" branch.
http://hg.python.org/devguide/rev/54ec1b493006
msg166825 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012-07-29 22:23
> So there may be three issues here:
> (1) the Dev Guide links to the revision list rather than directly
> to the browser,

This is now fixed.

> (2) browsing defaults to browsing 2.7 rather than the default branch,

This is fixed as well.  FTR it's not defaulting to 2.7, it just uses the branch of the latest commit, and when you checked it happened to be 2.7.

> (3) the branch name should be diplayed somewhere on the page when 
> browsing (or better yet, also in the URL itself).

This seems to be a bug in hgweb, and you should report it upstream.
In http://hg.python.org/cpython/rev/e8851809ae83 you can see at the top, next to the csid, the branch name and the 'tip' tag.
In http://hg.python.org/cpython/file/e8851809ae83 only the 'tip' tag is shown.
I don't know if the omission of the branch is intentional, but it seems reasonable to me to have it in the "browse" page too.
msg166835 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-07-29 23:19
> > (3) the branch name should be diplayed somewhere on the page when 
> > browsing (or better yet, also in the URL itself).
>
> This seems to be a bug in hgweb, and you should report it upstream.

I filed an issue for this upstream as you suggested:

http://bz.selenic.com/show_bug.cgi?id=3559
History
Date User Action Args
2022-04-11 14:57:33adminsetgithub: 59696
2012-07-29 23:19:16chris.jerdoneksetmessages: + msg166835
2012-07-29 22:23:57ezio.melottisetstatus: open -> closed

type: enhancement
assignee: ezio.melotti
components: + Devguide

nosy: + ezio.melotti
messages: + msg166825
resolution: fixed
stage: resolved
2012-07-29 22:23:15python-devsetmessages: + msg166824
2012-07-29 22:11:48pitrousetnosy: + pitrou
messages: + msg166821
2012-07-29 22:10:15python-devsetnosy: + python-dev
messages: + msg166820
2012-07-29 20:17:08chris.jerdonekcreate