This is an archive of the discontinued Mercurial Phabricator instance.

wireproto: remove unnecessary exception trapping
ClosedPublic

Authored by indygreg on Feb 1 2018, 6:37 PM.

Details

Summary

The try..except error.Abort was added in 8474be4412ca back in

  1. The intent was to ensure a failing pushkey hook didn't crash

the server.

Since that changeset, repo.pushkey() and the hooks mechanism is
now much more robust about trapping errors itself. As such, we no
longer need this try..except block. So it has been removed.

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

indygreg created this revision.Feb 1 2018, 6:37 PM
durin42 accepted this revision.Feb 7 2018, 5:06 PM
This revision is now accepted and ready to land.Feb 7 2018, 5:06 PM
This revision was automatically updated to reflect the committed changes.