Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.py @ 49975:562f7da122b5
bundlerepo: raise `error.LookupError` instead of `LookupError`
I'm pretty sure that this was the intention, given `error.LookupError` is raised
a few lines above with the same arguments.
Note that PyCharm complains about `self.display_id` (and the use above this too)
being `() -> Any` instead of `bytes`, but it may be confused about the
`util.propertycache` annotation on it.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 30 Jan 2023 16:59:15 -0500 |
parents | 1bd33932713d |
children | 2a7e8471782c |
comparison
equal
deleted
inserted
replaced
49974:90f047edab4f | 49975:562f7da122b5 |
---|---|
86 raise error.LookupError( | 86 raise error.LookupError( |
87 p, self.display_id, _(b"unknown parent") | 87 p, self.display_id, _(b"unknown parent") |
88 ) | 88 ) |
89 | 89 |
90 if not self.index.has_node(deltabase): | 90 if not self.index.has_node(deltabase): |
91 raise LookupError( | 91 raise error.LookupError( |
92 deltabase, self.display_id, _(b'unknown delta base') | 92 deltabase, self.display_id, _(b'unknown delta base') |
93 ) | 93 ) |
94 | 94 |
95 baserev = self.rev(deltabase) | 95 baserev = self.rev(deltabase) |
96 # start, size, full unc. size, base (unused), link, p1, p2, node, sidedata_offset (unused), sidedata_size (unused) | 96 # start, size, full unc. size, base (unused), link, p1, p2, node, sidedata_offset (unused), sidedata_size (unused) |