ancestor: drop an unused local variable assignment
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 13:05:22 -0500
changeset 43973 5ce6daa67658
parent 43972 6c201f0d17b1
child 43974 68b09ebf1c13
ancestor: drop an unused local variable assignment Caught by PyCharm. Differential Revision: https://phab.mercurial-scm.org/D7736
mercurial/ancestor.py
--- a/mercurial/ancestor.py	Fri Dec 27 02:44:00 2019 -0500
+++ b/mercurial/ancestor.py	Fri Dec 27 13:05:22 2019 -0500
@@ -331,7 +331,7 @@
 
         Result does not include the null revision."""
         self._parentrevs = pfunc
-        self._initrevs = revs = [r for r in revs if r >= stoprev]
+        self._initrevs = [r for r in revs if r >= stoprev]
         self._stoprev = stoprev
         self._inclusive = inclusive