debugdag: stop wrongly sorting parents
authorHenrik Stuart <hg@hstuart.dk>
Sat, 30 Aug 2014 11:56:33 +0200
changeset 22310 aabf367306d5
parent 22309 a65697c3f20e
child 22311 5038dee5bdd6
debugdag: stop wrongly sorting parents The dag being dumped is not in a format that allows us to reconstruct the original dag as the parent revisions are normalised.
mercurial/commands.py
--- a/mercurial/commands.py	Fri Aug 29 18:00:44 2014 +0200
+++ b/mercurial/commands.py	Sat Aug 30 11:56:33 2014 +0200
@@ -1905,8 +1905,8 @@
         revs = set((int(r) for r in revs))
         def events():
             for r in rlog:
-                yield 'n', (r, list(set(p for p in rlog.parentrevs(r)
-                                        if p != -1)))
+                yield 'n', (r, list(p for p in rlog.parentrevs(r)
+                                        if p != -1))
                 if r in revs:
                     yield 'l', (r, "r%i" % r)
     elif repo:
@@ -1925,8 +1925,8 @@
                     if newb != b:
                         yield 'a', newb
                         b = newb
-                yield 'n', (r, list(set(p for p in cl.parentrevs(r)
-                                        if p != -1)))
+                yield 'n', (r, list(p for p in cl.parentrevs(r)
+                                        if p != -1))
                 if tags:
                     ls = labels.get(r)
                     if ls: