context: simplify parents code
authorMatt Mackall <mpm@selenic.com>
Fri, 11 Jul 2008 18:46:02 -0500
changeset 6772 84b53eef9964
parent 6771 f5d7cfcbb4d3
child 6773 c68f84448012
context: simplify parents code
mercurial/context.py
--- 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)