Merge lp:~abentley/launchpad/empty-conflicts into lp:launchpad
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~abentley/launchpad/empty-conflicts |
Merge into: | lp:launchpad |
Diff against target: |
216 lines (+104/-3) 7 files modified
lib/lp/code/browser/diff.py (+3/-2) lib/lp/code/browser/tests/test_diff.py (+41/-0) lib/lp/code/interfaces/diff.py (+4/-0) lib/lp/code/model/diff.py (+4/-0) lib/lp/code/model/tests/test_diff.py (+16/-0) lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt (+1/-1) lib/lp/testing/factory.py (+35/-0) |
To merge this branch: | bzr merge lp:~abentley/launchpad/empty-conflicts |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | release-critical | Disapprove | |
Gary Poster (community) | release-critical | Abstain | |
Paul Hummer (community) | code | Approve | |
Review via email: mp+18460@code.launchpad.net |
Commit message
Fix spurious conflict message in merge proposals.
To post a comment you must log in.
= Summary =
This fixes bug #515775, which is caused by our new conflict-detection.
Unfortunately, the code in place for handling conflicts assumed only None
indicated no conflicts, but our new conflict detection (unlike MAD), uses the
empty string.
== Proposed fix ==
Update our UI to treat '' as indicating no conflicts.
== Pre-implementation notes ==
Post-implementation call with Thumper.
== Implementation details ==
This determination was previously made by the PreviewDiff's link formatter,
but is now changed to be a method on the model class.
Some lint fixes were made to other code.
== Tests ==
bin/test -vt PreviewDiff -t FormatterAPI
== Demo and Q/A ==
Create a merge proposal that has a diff with no conflicts. Observe that it
does not say "(has conflicts)".
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: code/browser/ diff.py code/model/ diff.py testing/ factory. py code/model/ tests/test_ diff.py code/browser/ tests/test_ diff.py code/interfaces /diff.py code/templates/ branchmergeprop osal-pagelet- summary. pt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ code/model/ diff.py
18: [F0401] Unable to import 'lazr.delegates' (No module named delegates)
209: [W0703, Diff.fromFile] Catch "Exception"
lib/lp/ testing/ factory. py Factory. makeRecipe] Unable to import 'bzrlib. plugins. builder. recipe' (No module named builder)
1619: [F0401, LaunchpadObject
lib/lp/ code/interfaces /diff.py fields' (No module named restful) declarations' (No module named restful)
20: [F0401] Unable to import 'lazr.restful.
21: [F0401] Unable to import 'lazr.restful.