[PATCH STABLE] context: translate FilteredIndex/LookupError at repo[changeid] (API)
Yuya Nishihara
yuya at tcha.org
Fri Apr 20 08:30:31 EDT 2018
On Thu, 19 Apr 2018 16:36:21 +0000, Martin von Zweigbergk wrote:
> > try:
> > repo[rev_or_node]
> > except (error.RepoLookupError, error.FilteredIndexError,
> > error.FilteredLookupError):
> > pass
> >
>
> Perhaps we should introduce a FilteredAccessError that
> FilteredIndexError, FilteredLookupError,
> and FilteredRepoLookupError can extend from.
That could be, but we'll still need to translate them to a subclass of
RepoLookupError because a filtered revision should behave as if it weren't
there.
> -8ba1c6dab49f at mercurial-scm.org
Oops, copy-paste error.
More information about the Mercurial-devel
mailing list