changeset 6772:84b53eef9964

context: simplify parents code
author Matt Mackall <mpm@selenic.com>
date Fri, 11 Jul 2008 18:46:02 -0500
parents f5d7cfcbb4d3
children c68f84448012
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Fri Jul 11 18:46:02 2008 -0500
+++ b/mercurial/context.py	Fri Jul 11 18:46:02 2008 -0500
@@ -477,8 +477,7 @@
         else:
             self._user = self._repo.ui.username()
         if parents:
-            p1, p2 = parents
-            self._parents = [changectx(self._repo, p) for p in (p1, p2)]
+            self._parents = [changectx(self._repo, p) for p in parents]
         if changes:
             self._status = list(changes)