This is an archive of the discontinued Mercurial Phabricator instance.

state: set canonical=True to write deterministically
ClosedPublic

Authored by pulkit on May 18 2018, 7:18 AM.

Details

Summary

Passing canonical=True to cbor.dump() will help in writing the data
deterministically. This will sort all the sets and dicts before writing to the
file. Thanks indygreg for recommending to use it.

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.May 18 2018, 7:18 AM
martinvonz accepted this revision.May 21 2018, 11:59 AM
This revision is now accepted and ready to land.May 21 2018, 11:59 AM
This revision was automatically updated to reflect the committed changes.