This is an archive of the discontinued Mercurial Phabricator instance.

manifest: use list(dict) instead of dict.keys() to get a list of keys
ClosedPublic

Authored by durin42 on Feb 18 2018, 1:00 AM.

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

durin42 created this revision.Feb 18 2018, 1:00 AM
pulkit accepted this revision.Feb 18 2018, 6:56 AM
indygreg accepted this revision.Feb 18 2018, 11:30 AM
indygreg added a subscriber: indygreg.

This one feels sub-optimal because of the amount of intermediary variables. But I think it should be OK.

This revision is now accepted and ready to land.Feb 18 2018, 11:30 AM
This revision was automatically updated to reflect the committed changes.

This one feels sub-optimal because of the amount of intermediary variables. But I think it should be OK.

Agreed, though it's equivalent to what's already happening with .keys().

So far treemanifest code hasn't been prominent in profiles at Google, so it's not high on my optimization list.