obslog: clarify some sorting code
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jun 2017 19:00:31 +0200
changeset 2636 a788967aa800
parent 2635 9ab35c37b85a
child 2637 49f2741c4dd7
obslog: clarify some sorting code I'm not sure why Boris did it, but this belong to the next patch.
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()