ancestor: drop another unused variable assignment
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 13:11:22 -0500
changeset 43974 68b09ebf1c13
parent 43973 5ce6daa67658
child 43975 3194cc8c8de0
ancestor: drop another unused variable assignment Also caught by PyCharm. The only time this is used is immediately after another assignment below this. Differential Revision: https://phab.mercurial-scm.org/D7737
mercurial/ancestor.py
--- a/mercurial/ancestor.py	Fri Dec 27 13:05:22 2019 -0500
+++ b/mercurial/ancestor.py	Fri Dec 27 13:11:22 2019 -0500
@@ -108,12 +108,12 @@
                 if p == nullrev:
                     continue
                 dp = depth[p]
-                nsp = sp = seen[p]
+                sp = seen[p]
                 if dp <= dv:
                     depth[p] = dv + 1
                     if sp != sv:
                         interesting[sv] += 1
-                        nsp = seen[p] = sv
+                        seen[p] = sv
                         if sp:
                             interesting[sp] -= 1
                             if interesting[sp] == 0: