# HG changeset patch # User Sean Farley # Date 1376596983 18000 # Node ID 31bdc51b0f1e5fd7743f4233ad99abd48f94aede # Parent d2743be1bb0645f45411cb7a91764a791e7ff4eb memctx: call super.__init__ instead of duplicating code diff -r d2743be1bb06 -r 31bdc51b0f1e mercurial/context.py --- a/mercurial/context.py Thu Aug 15 15:00:03 2013 -0500 +++ b/mercurial/context.py Thu Aug 15 15:03:03 2013 -0500 @@ -1560,12 +1560,9 @@ """ def __init__(self, repo, parents, text, files, filectxfn, user=None, date=None, extra=None, editor=False): - self._repo = repo + super(memctx, self).__init__(repo, text, user, date, extra) self._rev = None self._node = None - self._text = text - self._date = date and util.parsedate(date) or util.makedate() - self._user = user parents = [(p or nullid) for p in parents] p1, p2 = parents self._parents = [changectx(self._repo, p) for p in (p1, p2)]