codebrowse urls are long and confusing
Bug #98826 reported by
Michael Hudson-Doyle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
Unassigned | ||
loggerhead |
Fix Released
|
Medium
|
Robey Pointer |
Bug Description
I'd like to work on letting pydoctor, my API doc generation tool, link to source as presented by codebrowse (it already has support for linking to trac's source viewer). Currently the codebrowse urls contain file-ids, which I could dig out of the wc being generated from, but well, it's not nice :)
spiv said on IRC that he thought allowing "filename=..." as an alternative to "file-id=..." looked easy enough.
To post a comment you must log in.
I talked with Robert about this. The two changes we should probably make include:
1. use the filename as part of the URL. Rather than "/annotate/ $REVID? file_id= $FILEID" , use "/annotate/ $REVID/ $FILENAME" .
2. allow some short hand to refer to the head revision ID. Robert suggested "head:", which would give a URL like "/annotate/ head:/$ FILENAME" .