Merge lp://staging/~pr0gg3d/loggerhead/annotate_zero_size_820065 into lp://staging/loggerhead
Proposed by
Francesco Del Degan
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | 456 |
Merged at revision: | 454 |
Proposed branch: | lp://staging/~pr0gg3d/loggerhead/annotate_zero_size_820065 |
Merge into: | lp://staging/loggerhead |
Prerequisite: | lp://staging/~pr0gg3d/loggerhead/annotate_comment_notpresent_812583 |
Diff against target: |
46 lines (+16/-2) 2 files modified
loggerhead/controllers/annotate_ui.py (+4/-0) loggerhead/tests/test_controllers.py (+12/-2) |
To merge this branch: | bzr merge lp://staging/~pr0gg3d/loggerhead/annotate_zero_size_820065 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+70885@code.staging.launchpad.net |
This proposal supersedes a proposal from 2011-08-08.
Commit message
Don't break when annotating a zero-sized file.
Description of the change
This fixes #820065
The bug occurs when trying to annotate a zero-sized file.
The last_lineno is None, and an exception is raised at the end of method.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/8/2011 11:09 PM, Francesco Del Degan wrote: reviewers) /bugs.launchpad .net/loggerhead /+bug/820065 /code.launchpad .net/~pr0gg3d/ loggerhead/ annotate_ zero_size_ 820065/ +merge/ 70789
> Francesco Del Degan has proposed merging
> lp:~pr0gg3d/loggerhead/annotate_zero_size_820065 into lp:loggerhead.
>
> Requested reviews: Loggerhead Reviewers (loggerhead-
> Related bugs: Bug #820065 in loggerhead: "TypeError: unsupported
> operand type(s) for -: 'int' and 'NoneType'"
> https:/
>
> For more details, see:
> https:/
>
> This fixes #820065
>
> The bug occurs when trying to annotate a zero-sized file. The
> last_lineno is None, and an exception is raised at the end of
> method.
>
>
Good change, but again, it would be nice to have a simple test for this.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
BBXsACgkQJdeBCY SNAAPa1gCgsUeNv uKXWegQldo8I3bN UGGD 99xuxXSZRboFZ0r WJA
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk5
iz8AoMPb5kLkd+
=wL8n
-----END PGP SIGNATURE-----