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.
--- 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: