This is an archive of the discontinued Mercurial Phabricator instance.

py3: return False early while checking whether None is a key in lazymanifest
ClosedPublic

Authored by pulkit on Sep 30 2017, 8:50 AM.

Details

Summary

In this patch we returns False early if we are trying to check whether None is a
key in lazymanifest. The reason I added a diff is that on Python 3, it goes into
the lazy manifest code an returns a TypeError. I checked with Durham that
whether None can be a possible key in lazymanifest and he said "no". So it's
safe to have this if statement.

This fixes hg merge on Python 3.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Sep 30 2017, 8:50 AM
durin42 accepted this revision.Sep 30 2017, 9:03 AM
This revision is now accepted and ready to land.Sep 30 2017, 9:03 AM
This revision was automatically updated to reflect the committed changes.