# HG changeset patch # User Pierre-Yves David # Date 1497891631 -7200 # Node ID a788967aa800300e64b3d39d74b9ff0b562c3391 # Parent 9ab35c37b85a890323075ae9af927f7540fec071 obslog: clarify some sorting code I'm not sure why Boris did it, but this belong to the next patch. diff -r 9ab35c37b85a -r a788967aa800 hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Mon Jun 19 15:56:28 2017 +0200 +++ b/hgext3rd/evolve/obshistory.py Mon Jun 19 19:00:31 2017 +0200 @@ -91,10 +91,12 @@ fm = self.ui.formatter('debugobshistory', props) _debugobshistorydisplaynode(fm, self.repo, changenode) + # Succs markers succs = self.repo.obsstore.successors.get(changenode, ()) + succs = sorted(succs) markerfm = fm.nested("debugobshistory.markers") - for successor in sorted(succs): + for successor in succs: _debugobshistorydisplaymarker(markerfm, successor) markerfm.end()