Merge lp:~jameinel/bzr/2.0.4-update-exception-495023 into lp:bzr/2.0
Proposed by
John A Meinel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andrew Bennetts | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~jameinel/bzr/2.0.4-update-exception-495023 | ||||
Merge into: | lp:bzr/2.0 | ||||
Diff against target: |
71 lines (+26/-2) 3 files modified
NEWS (+4/-0) bzrlib/_dirstate_helpers_pyx.pyx (+2/-1) bzrlib/tests/test__dirstate_helpers.py (+20/-1) |
||||
To merge this branch: | bzr merge lp:~jameinel/bzr/2.0.4-update-exception-495023 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Bennetts | Approve | ||
Review via email: mp+16805@code.launchpad.net |
To post a comment you must log in.
This is a quick-and-simple fix for bug #495023. It just changes the _update_ current_ block function so that it can raise an exception. The bug is that we were using a C helper that didn't define an 'except' mechanism, which then called into regular python code. Any pending exception probably gets triggered at that point, but we then suppressed it.
Andrew's fix probably helps, in that we poll for pending exceptions earlier. However, it doesn't get at the root, just shrinks the available window.