changeset 17330:32e9d63d9ba6

context: simplify workingctx._parents
author Patrick Mezard <patrick@mezard.eu>
date Thu, 02 Aug 2012 17:48:58 +0200
parents 23b247234454
children ef8d612bebe7
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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