context: simplify workingctx._parents
authorPatrick Mezard <patrick@mezard.eu>
Thu, 02 Aug 2012 17:48:58 +0200
changeset 17330 32e9d63d9ba6
parent 17224 23b247234454
child 17331 ef8d612bebe7
context: simplify workingctx._parents
mercurial/context.py
--- a/mercurial/context.py	Wed Jul 18 19:08:11 2012 -0500
+++ b/mercurial/context.py	Thu Aug 02 17:48:58 2012 +0200
@@ -885,8 +885,7 @@
         p = self._repo.dirstate.parents()
         if p[1] == nullid:
             p = p[:-1]
-        self._parents = [changectx(self._repo, x) for x in p]
-        return self._parents
+        return [changectx(self._repo, x) for x in p]
 
     def status(self, ignored=False, clean=False, unknown=False):
         """Explicit status query