This is an archive of the discontinued Mercurial Phabricator instance.

obsolete: always return frozensets from obsolete.getrevs()
ClosedPublic

Authored by av6 on Feb 9 2022, 10:44 AM.

Details

Summary

getrevs function already returns an empty frozenset when there is no obsstore,
but let's make sure to return a frozenset in any case. This makes it possible
to use the result of this function as a dict key or provide it to hash()
built-in function without any conversions.

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

av6 created this revision.Feb 9 2022, 10:44 AM
Alphare accepted this revision.Feb 9 2022, 11:08 AM
This revision is now accepted and ready to land.Feb 9 2022, 11:08 AM
This revision was automatically updated to reflect the committed changes.