# HG changeset patch # User Anton Shestakov # Date 1524816850 -28800 # Node ID 0fc78fdca4b8afa883d3f79ecdba3b42c92e719f # Parent 3b220226bbec9b8121848c6bc43d8473d0080864 obshistory: use a more appropriate type for obslog entries cand is actually a regular changeset and not 'M' (graphmod.MISSINGPARENT). And 'M' is only used for graph edges, but cand is drawn as a graph node. Visually there's no effect, but the code makes more sense this way. diff -r 3b220226bbec -r 0fc78fdca4b8 hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Wed Apr 25 14:16:35 2018 +0100 +++ b/hgext3rd/evolve/obshistory.py Fri Apr 27 16:14:10 2018 +0800 @@ -285,7 +285,7 @@ changectx = missingchangectx(repo, cand) childrens = [(graphmod.PARENT, x) for x in nodeprec.get(cand, ())] - yield (cand, 'M', changectx, childrens) + yield (cand, graphmod.CHANGESET, changectx, childrens) def _obshistorywalker_links(repo, revs, walksuccessors=False): """ Iterate the obs history tree starting from revs, traversing