removed usage of OrderedDict in hg