This is an archive of the discontinued Mercurial Phabricator instance.

wireproto: sort response to listkeys
ClosedPublic

Authored by indygreg on Feb 23 2018, 2:01 PM.

Details

Summary

The listkeys protocol is defined to produce a dictionary.
pushkey.decodekeys() uses a plain dict to hold the decoded results
of the wire protocol response. So order should not matter.

Upcoming tests will verify low-level output of wire protocol
commands and the non-deterministic emitting of listkeys was causing
intermittent failures.

So we make the output of listkeys deterministic.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Feb 23 2018, 2:01 PM
indygreg updated this revision to Diff 6140.Feb 26 2018, 4:16 PM
indygreg updated this revision to Diff 6251.Mar 1 2018, 11:30 AM
durin42 added a subscriber: durin42.Mar 1 2018, 4:36 PM

I'm a little bummed about this because namespaces could be *enormous*, like bookmarks. We might want to find another way to handle this...

durin42 accepted this revision.Mar 1 2018, 4:36 PM
This revision is now accepted and ready to land.Mar 1 2018, 4:36 PM
This revision was automatically updated to reflect the committed changes.