diff .hgsigs @ 29591:6215b5537ba5

bundle2: use a sorted dict for holding parameters An upcoming change that introduces a 2nd part parameter to a part reveals that `hg debugbundle` isn't deterministic because parameters are stored on n plain, unsorted dict. While we could change that command to sort before output, I think the more important underlying issue is that bundle2 reading is taking an ordered data structure and converting it to an unordered one. Plugging in util.sortdict() fixes that problem while preserving API compatibility. This patch also appears to shine light on the fact that we don't have tests verifying parts with multiple parameters roundtrip correctly. That would be a good thing to test (and fuzz)... someday.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 17 Jul 2016 14:51:00 -0700
parents ddbff1435e7b
children 02a8fea4289b
line wrap: on
line diff