changeset 39442:9a813e4c8406

drawdag: correctly pass repo to super constructor This was caught by someone who was looking for the super(cls, self).__init__(self, ...) pattern in all code in our Google-internal repo. Differential Revision: https://phab.mercurial-scm.org/D4464
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 04 Sep 2018 10:36:34 -0700
parents d0a8299e7256
children 2815e0db4c54
files tests/drawdag.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/drawdag.py	Tue Sep 04 20:54:41 2018 -0400
+++ b/tests/drawdag.py	Tue Sep 04 10:36:34 2018 -0700
@@ -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: