##// END OF EJS Templates
drawdag: abide by new createmarkers() API...
Martin von Zweigbergk -
r44864:dda2341d default
parent child Browse files
Show More
@@ -438,13 +438,13 b' def debugdrawdag(ui, repo, **opts):'
438 if cmd in (b'replace', b'rebase', b'amend'):
438 if cmd in (b'replace', b'rebase', b'amend'):
439 nodes = [getctx(m) for m in arg.split(b'->')]
439 nodes = [getctx(m) for m in arg.split(b'->')]
440 for i in range(len(nodes) - 1):
440 for i in range(len(nodes) - 1):
441 rels.append((nodes[i], (nodes[i + 1],)))
441 rels.append(((nodes[i],), (nodes[i + 1],)))
442 elif cmd in (b'split',):
442 elif cmd in (b'split',):
443 pre, succs = arg.split(b'->')
443 pre, succs = arg.split(b'->')
444 succs = succs.split(b',')
444 succs = succs.split(b',')
445 rels.append((getctx(pre), (getctx(s) for s in succs)))
445 rels.append(((getctx(pre),), (getctx(s) for s in succs)))
446 elif cmd in (b'prune',):
446 elif cmd in (b'prune',):
447 for n in arg.split(b','):
447 for n in arg.split(b','):
448 rels.append((getctx(n), ()))
448 rels.append(((getctx(n),), ()))
449 if rels:
449 if rels:
450 obsolete.createmarkers(repo, rels, date=(0, 0), operation=cmd)
450 obsolete.createmarkers(repo, rels, date=(0, 0), operation=cmd)
General Comments 0
You need to be logged in to leave comments. Login now