[PATCH 1 of 7 clfilter part 1 V3] clfilter: ensure context raise RepoLookupError when the revision is filtered

Kevin Bullock kbullock+mercurial at ringworld.org
Tue Dec 18 11:37:28 CST 2012


On Dec 17, 2012, at 10:50 AM, pierre-yves.david at logilab.fr wrote:

> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1354489919 -3600
> # Node ID e954ac5321a9ead1a4e687385dca7134218ccc83
> # Parent  8c9a52492d426741ab24392d49f44a1d4f23613e
> clfilter: ensure context raise RepoLookupError when the revision is filtered
> 
> Currently the code path of `changectx(filteredrepo, rev)` call
> `filteredrepo.changelog.node(rev)`. When `rev` is filtered this raise an
> unhandled `IndexError`. This case now raise a `RepoLookupError` as other
> error case do.

Pushed the fixed version with the stray line that Sean pointed out removed.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list