Merge lp:~pauljnixon/bzr/context_in_diffs into lp:bzr
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6547 |
Proposed branch: | lp:~pauljnixon/bzr/context_in_diffs |
Merge into: | lp:bzr |
Diff against target: |
234 lines (+92/-12) 4 files modified
bzrlib/builtins.py (+7/-2) bzrlib/diff.py (+18/-10) bzrlib/tests/test_diff.py (+63/-0) doc/en/release-notes/bzr-2.6.txt (+4/-0) |
To merge this branch: | bzr merge lp:~pauljnixon/bzr/context_in_diffs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Jelmer Vernooij (community) | Approve | ||
Review via email: mp+115819@code.launchpad.net |
This proposal supersedes a proposal from 2012-07-06.
Commit message
Add option to specify how much context bzr should use in diffs
Description of the change
Patiencediff (used by default for "bzr diff" command) includes the ability to control how many lines of context to output for each changed section. I made this accessible as an option to bzr diff, as "--context" so an example would be "bzr diff -r-2 --context 6"
As per requests made of the previous merge proposal, I have changed the defaults to be constant, added tests, and updated the release notes.
I have also made this accessible to Loggerhead which I will propose for merging if this goes in.
This is the first time I have proposed anything for merging, if I'm doing something wrong just let me know and I'll fix it.
Hi Paul,
The changes don't look unreasonable. At a first glance, two notes: it would be nice to have a constant for the default number of context lines. Can you please add some basic tests for the new option?
Cheers,
Jelmer
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Paul <email address hidden> wrote:
Paul has proposed merging lp:~pauljnixon/bzr/context_in_diffs into lp:bzr.
Requested reviews:
bzr-core (bzr-core)
For more details, see: /code.launchpad .net/~pauljnixo n/bzr/context_ in_diffs/ +merge/ 113793
https:/
Patiencediff (used by default for "bzr diff" command) includes the ability to control how many lines of context to output for each changed section. I made this accessible as an option to bzr diff, as "--context" so an example would be "bzr diff -r-2 --context 6"
I have also made this accessible to Loggerhead which I will propose for merging if this goes in.
This is the first time I have proposed anything for merging, if I'm doing something wrong just let me know and I'll fix it. /code.launchpad .net/~pauljnixo n/bzr/context_ in_diffs/ +merge/ 113793
--
https:/
Your team Bazaar Codereview Subscribers is subscribed to branch lp:bzr.