As part of separating the part iteration logic from the part handling logic,
let's move the exception handling to the part iterator class.
Details
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
mercurial/bundle2.py | ||
---|---|---|
387 | I'll fix the typo in flight. |
mercurial/bundle2.py | ||
---|---|---|
368 | Doesn't look like this can actually happen (if used properly in a with-statement) | |
402 | Looks like a small change in behavior here: the debug message below used to always be printed (before this patch and also before this series). Just pointing it out in case you didn't notice. I'll let you decide if it's worth restoring the message by putting it back in a finally-block. |
This commit regressed the behavior of ^C during part application (ad41739c6b2b and issue 4784). Before, ^C would abort bundle2 application pretty quickly. Afterwards, it appears we now attempt I/O to seek to the end of the part (or something).
You can test this by running hg clone https://hg.mozilla.org/mozilla-unified and hitting ^C after some changesets are applied. If the process doesn't terminate right away and requires a 2nd ^C to terminate, the behavior is bad.
Doesn't look like this can actually happen (if used properly in a with-statement)