Patchwork D8149: drawdag: abide by new createmarkers() API

login
register
mail settings
Submitter phabricator
Date Feb. 26, 2020, 10:51 a.m.
Message ID <daebd9e8bcfc06c057bab635dd540d6c@localhost.localdomain>
Download mbox | patch
Permalink /patch/45320/
State Not Applicable
Headers show

Comments

phabricator - Feb. 26, 2020, 10:51 a.m.
Closed by commit rHGdda2341d6664: drawdag: abide by new createmarkers() API (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8149?vs=20301&id=20305

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8149/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8149

AFFECTED FILES
  tests/drawdag.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/drawdag.py b/tests/drawdag.py
--- a/tests/drawdag.py
+++ b/tests/drawdag.py
@@ -438,13 +438,13 @@ 
             if cmd in (b'replace', b'rebase', b'amend'):
                 nodes = [getctx(m) for m in arg.split(b'->')]
                 for i in range(len(nodes) - 1):
-                    rels.append((nodes[i], (nodes[i + 1],)))
+                    rels.append(((nodes[i],), (nodes[i + 1],)))
             elif cmd in (b'split',):
                 pre, succs = arg.split(b'->')
                 succs = succs.split(b',')
-                rels.append((getctx(pre), (getctx(s) for s in succs)))
+                rels.append(((getctx(pre),), (getctx(s) for s in succs)))
             elif cmd in (b'prune',):
                 for n in arg.split(b','):
-                    rels.append((getctx(n), ()))
+                    rels.append(((getctx(n),), ()))
             if rels:
                 obsolete.createmarkers(repo, rels, date=(0, 0), operation=cmd)