Merge lp:~abentley/launchpad/diffstat-count into lp:launchpad
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~abentley/launchpad/diffstat-count |
Merge into: | lp:launchpad |
Diff against target: |
123 lines 3 files modified
lib/lp/code/model/diff.py (+14/-2) lib/lp/code/model/tests/test_diff.py (+33/-2) lib/lp/code/stories/webservice/xx-branchmergeproposal.txt (+2/-2) |
To merge this branch: | bzr merge lp:~abentley/launchpad/diffstat-count |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | Approve | ||
Review via email: mp+12720@code.launchpad.net |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
= Summary =
This allows Launchpad to automatically know the overall number of lines
added or removed by a patch.
== Proposed fix ==
Calculate totals using the diffstat array, and store them in the
database. In the event that a diffstat cannot be calculated, store None
in these fields.
== Pre-implementation notes ==
Pre-implementation was with thumper
== Implementation details ==
As a drive-by, if a diffstat cannot be calculated, Diff.diffstat is set
to None rather than {}. None is already its default value.
== Tests ==
bin/test test_diff -t TestDiff
== Demo and Q/A ==
There is no user-visible change.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: code/model/ diff.py code/model/ tests/test_ diff.py code/stories/ webservice/ xx-branchmergep roposal. txt
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ code/model/ diff.py
17: [F0401] Unable to import 'lazr.delegates' (No module named
delegates)
^^^ bogus enigmail. mozdev. org
166: [W0703, Diff.fromFile] Catch "Exception"
^^^ The block does generic exception handling.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr Et4kACgkQ0F+ nu1YWqI0UegCfWd cLy0KKD2rhXIAV0 J4IdvO4 eDYmUVoiTZ03/ QTwd
71AAn1gxQWugD8z
=VU6P
-----END PGP SIGNATURE-----