How do you get a version-agnostic view of a file?

Asked by Duncan McGreggor

I wanted to provide a link to a file on launchpad (a bzr web view) but I wanted it to be the latest version of the file, not a specific version.

Question information

Language:
English Edit question
Status:
Solved
For:
loggerhead Edit question
Assignee:
No assignee Edit question
Solved by:
Duncan McGreggor
Solved:
Last query:
Last reply:
Revision history for this message
Duncan McGreggor (oubiwann) said :
#1

On irc.freenode.net in #launchpad, spiv (Andrew Bennetts) answered with the following:

"I believe there's some magic URL hacking you can do, something like "head:" or similar.
You can also replace the ?file_id=xxx with /path, e.g., http://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/head:/COPYING.txt."

That worked perfectly.

Thanks Andrew!

Revision history for this message
Russ Brown (pickscrape) said :
#2

Would it be possible to provide a link to this URL somewhere, so it doesn't need to be manually constructed? We have a need to use quite a lot of these, so such a link would be very useful.

Revision history for this message
Martin Albisetti (beuno) said :
#3

This is already the default in loggerhead trunk.
head: is always the tip, which is what you can consider "version agnostic" in a VCS

Revision history for this message
Russ Brown (pickscrape) said :
#4

Aha, perfect. The version we had didn't have this. Excellent, thanks. :)