This is an archive of the discontinued Mercurial Phabricator instance.

repo: remove the last few "pass" statements in localrepo.__getitem__
ClosedPublic

Authored by martinvonz on Oct 4 2018, 8:03 PM.

Details

Summary

In case of IndexError or LookupError, we used "pass" statements and
fell through to the end of localrepo.getitem. I find the pass
statements easy to miss. Consistently raising and catching exceptions
seems easier to follow.

Oh -- and I didn't plan this before I wrote the above -- that probably
also lets us reuse the "return context.changectx(self, rev, node)" in
a later patch.

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.