Merge lp:~abentley/launchpad/incremental-diff-job into lp:launchpad/db-devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Graham Binns | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 9950 | ||||
Proposed branch: | lp:~abentley/launchpad/incremental-diff-job | ||||
Merge into: | lp:launchpad/db-devel | ||||
Prerequisite: | lp:~abentley/launchpad/display-incremental | ||||
Diff against target: |
673 lines (+301/-66) 9 files modified
lib/lp/code/configure.zcml (+5/-0) lib/lp/code/interfaces/branchmergeproposal.py (+20/-0) lib/lp/code/model/branch.py (+12/-4) lib/lp/code/model/branchmergeproposal.py (+11/-0) lib/lp/code/model/branchmergeproposaljob.py (+93/-14) lib/lp/code/model/tests/test_branchmergeproposaljobs.py (+69/-3) lib/lp/code/model/tests/test_diff.py (+45/-44) lib/lp/code/scripts/tests/test_merge_proposal_jobs.py (+12/-1) lib/lp/codehosting/scanner/tests/test_bzrsync.py (+34/-0) |
||||
To merge this branch: | bzr merge lp:~abentley/launchpad/incremental-diff-job | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+36881@code.launchpad.net |
Commit message
Implement jobs for generating incremental diffs.
Description of the change
= Summary =
Implement jobs for generating incremental diffs for merge proposals, and create
these jobs when the merge proposal source banch tip changes.
== Proposed fix ==
See above
== Pre-implementation notes ==
Discussed with Thumper
== Implementation details ==
As a driveby, I extracted commit_file and create_
could be reused more easily, without necessarily deriving from DiffTestCase.
I also added a job_type parameter to BranchMergeProp
make testing easier.
There were also a few lint fixes, like removing a semicolon.
== Tests ==
bin/test -t TestGenerateInc
== Demo and Q/A ==
Create a merge proposal. After the initial diff has been generated, push new
changes to the source branch. As well as updating the diff, this should show a
diff from the old branch tip to the new branch tip.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
utilities/
lib/lp/
lib/lp/
./lib/lp/
618: E202 whitespace before ')'
635: E231 missing whitespace after ','
./lib/lp/
192: E231 missing whitespace after ','
194: E231 missing whitespace after ','
./lib/lp/
15: E202 whitespace before ')'
./lib/lp/
166: E301 expected 1 blank line, found 0
./lib/lp/
5: E303 too many blank lines (3)
292: E202 whitespace before ')'
./lib/lp/
168: E301 expected 1 blank line, found 0
178: E301 expected 1 blank line, found 0
201: E202 whitespace before '}'
1471: E301 expected 1 blank line, found 0
Hi Aaron,
Nice branch, just a few things that need fixing before it lands:
* On line 94 of the diff, you need to indent the closing parenthesis by 4 more spaces. rementalDiffJob .
* On line 302 you need to add a \n after the opening bracket of the clauses list. You also need to fix the indentation of the list items so that they're four-spaces in from clauses = [ line.
* You need to add docstrings / comments for the last four tests in TestGenerateInc