This is an archive of the discontinued Mercurial Phabricator instance.

errors: remove unnecessary varargs handling from OutOfBandError
ClosedPublic

Authored by martinvonz on Apr 20 2021, 12:43 AM.

Details

Summary

In my recent D10465, I moved some code over from scmutil into
OutOfBandError.__init__. The code was written to deal with an
arbitrary number of message arguments to the constructor. It turns
out that we only ever pass 0 or 1. Given that, let's simplify it.

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

martinvonz created this revision.Apr 20 2021, 12:43 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.