How do I create a link to an expanded diff between two revisions?

Asked by James Hunt

I'd like to be able to mail out a link to an *expanded* diff (I don't want to require users to click anywhere for the whizzy ajax/blah experience) between 2 arbitrary revisions. So far, I've played with things like:

http://bazaar.launchpad.net/~upstart-documenters/upstart-cookbook/trunk/revision/85?start_revid=83

However, this doesn't appear to work.

Please could you point me to a document listing all known options ("start_revid", "remember", etc).

Thanks.

James.

Question information

Language:
English Edit question
Status:
Answered
For:
loggerhead Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/9/2011 12:06 PM, James Hunt wrote:
> New question #160820 on loggerhead:
> https://answers.launchpad.net/loggerhead/+question/160820
>
> I'd like to be able to mail out a link to an *expanded* diff (I don't want to require users to click anywhere for the whizzy ajax/blah experience) between 2 arbitrary revisions. So far, I've played with things like:
>
> http://bazaar.launchpad.net/~upstart-documenters/upstart-cookbook/trunk/revision/85?start_revid=83
>
> However, this doesn't appear to work.
>
> Please could you point me to a document listing all known options ("start_revid", "remember", etc).
>
> Thanks.
>
> James.
>
>
>

As far as I know, you have to click the "Expand All" button to trigger
all of the content to be shown. I don't believe there is a shortcut link
for it. However, that seems reasonable to support, so you're welcome to
turn this into a bug/wishlist.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3wnxwACgkQJdeBCYSNAAPZTQCcD9HWbP9WpCGZiID4ozI7Kyb5
5csAoNOjxzXzh+yA1gxqv2m1hPXdIgcb
=uN4J
-----END PGP SIGNATURE-----

Revision history for this message
Michael Hudson-Doyle (mwhudson) said :
#2

You can link to a single file's change like so:

http://bazaar.launchpad.net/~upstart-documenters/upstart-cookbook/trunk/revision/85/upstart_cookbook.rst

and you can get a complete raw diff for a revision, but there's no way of getting the whole diff for a revision in a single page. It would be a good feature, and probably pretty easy to add ?expanded=1 to the url and have that trigger a fetch of all the diffs. I changed away from generating the diff all in one page because of performance concerns, but maybe that's no longer relevant with bzr improvements (actually these days, I'd be tempted to do the pretty page by having the page's ajax the complete diff url and turn the diff into nice DOM diff view in pure js...)

Revision history for this message
Robert Collins (lifeless) said :
#3

You can get a diff by going to
.../diff/1234/12345

Its even linked in the 'compare this revision to another' UI, its only
not linked when looking at a single rev.

Can you help with this problem?

Provide an answer of your own, or ask James Hunt for more information if necessary.

To post a message you must log in.