The reasoning behind this patch is explained in the first patch of the series.
- rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
nit: the bool() wrapping is probably not necessary (and it's inconsistent with line the check for listignored a few lines down)