Mercurial > hg
comparison mercurial/wireprotov1server.py @ 40063:f84d7ed3bb35
repo: remove the last few "pass" statements in localrepo.__getitem__
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.
Differential Revision: https://phab.mercurial-scm.org/D4884
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 04 Oct 2018 16:06:36 -0700 |
parents | 7e4a856a4f05 |
children | ad8d8dc9be3f |
comparison
equal
deleted
inserted
replaced
40062:b6c2543e1dd8 | 40063:f84d7ed3bb35 |
---|