changeset 21666:31bdc51b0f1e

memctx: call super.__init__ instead of duplicating code
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 15 Aug 2013 15:03:03 -0500
parents d2743be1bb06
children 76ce63614887
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)]