##// END OF EJS Templates
memctx: call super.__init__ instead of duplicating code
Sean Farley -
r21666:31bdc51b default
parent child Browse files
Show More
@@ -1560,12 +1560,9 b' class memctx(committablectx):'
1560 1560 """
1561 1561 def __init__(self, repo, parents, text, files, filectxfn, user=None,
1562 1562 date=None, extra=None, editor=False):
1563 self._repo = repo
1563 super(memctx, self).__init__(repo, text, user, date, extra)
1564 1564 self._rev = None
1565 1565 self._node = None
1566 self._text = text
1567 self._date = date and util.parsedate(date) or util.makedate()
1568 self._user = user
1569 1566 parents = [(p or nullid) for p in parents]
1570 1567 p1, p2 = parents
1571 1568 self._parents = [changectx(self._repo, p) for p in (p1, p2)]
General Comments 0
You need to be logged in to leave comments. Login now