D4464: drawdag: correctly pass repo to super constructor

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Sep 5 06:53:36 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9a813e4c8406: drawdag: correctly pass repo to super constructor (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4464?vs=10755&id=10779

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

AFFECTED FILES
  tests/drawdag.py

CHANGE DETAILS

diff --git a/tests/drawdag.py b/tests/drawdag.py
--- a/tests/drawdag.py
+++ b/tests/drawdag.py
@@ -288,8 +288,7 @@
             'date': b'0 0',
             'extra': {b'branch': b'default'},
         }
-        super(simplecommitctx, self).__init__(self, name, **opts)
-        self._repo = repo
+        super(simplecommitctx, self).__init__(repo, name, **opts)
         self._added = added
         self._parents = parentctxs
         while len(self._parents) < 2:



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


More information about the Mercurial-devel mailing list