Merge lp://staging/~pauljnixon/loggerhead/context_in_diffs into lp://staging/loggerhead

Proposed by Paul Nixon
Status: Superseded
Proposed branch: lp://staging/~pauljnixon/loggerhead/context_in_diffs
Merge into: lp://staging/loggerhead
Diff against target: 180 lines (+54/-14)
4 files modified
loggerhead/controllers/diff_ui.py (+19/-6)
loggerhead/controllers/filediff_ui.py (+8/-3)
loggerhead/static/javascript/diff.js (+24/-3)
loggerhead/templates/revision.pt (+3/-2)
To merge this branch: bzr merge lp://staging/~pauljnixon/loggerhead/context_in_diffs
Reviewer Review Type Date Requested Status
Loggerhead Reviewers Pending
Review via email: mp+117102@code.staging.launchpad.net

This proposal has been superseded by a proposal from 2012-08-08.

Description of the change

Adds code to the "revision" page to configure the lines of context
shown in the diffs on that page.

Dependent on lp:~pauljnixon/bzr/context_in_diffs
(merged into lp:bzr as of July 28).

To post a comment you must log in.
Revision history for this message
Benji York (benji) wrote :

Am I reading the new code correctly in that any pre-existing links (in
the previous format) will generate different results than they did
before this change? If so, that seems unfortunate.

How about making the number of lines of context an optional parameter
instead, like so:

    /diff/<rev_id>/<rev_id>?context=<context_lines>

This arrangement seems to better reflect the semantics of the situation
as well as both allowing old links continue to work and permit the
number of lines of context to be optional.

Revision history for this message
Paul Nixon (pauljnixon) wrote :

Benji:

That's a good idea. I'll work on that.

Thanks,
---Paul

On Mon, Jul 30, 2012 at 1:28 PM, Benji York <email address hidden> wrote:
> Am I reading the new code correctly in that any pre-existing links (in
> the previous format) will generate different results than they did
> before this change? If so, that seems unfortunate.
>
> How about making the number of lines of context an optional parameter
> instead, like so:
>
> /diff/<rev_id>/<rev_id>?context=<context_lines>
>
> This arrangement seems to better reflect the semantics of the situation
> as well as both allowing old links continue to work and permit the
> number of lines of context to be optional.
>
> --
> https://code.launchpad.net/~pauljnixon/loggerhead/context_in_diffs/+merge/117102
> You are the owner of lp:~pauljnixon/loggerhead/context_in_diffs.

Revision history for this message
Richard Harding (rharding) wrote :

Switched back to WIP since there's tweaking going on. Please change back to needs review once adjusted.

Revision history for this message
Paul Nixon (pauljnixon) wrote :

Switched back to needs review.

> Switched back to WIP since there's tweaking going on. Please change back to
> needs review once adjusted.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches