Patchwork D7737: ancestor: drop another unused variable assignment

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 10:01 p.m.
Message ID <b7d56df7da31e7bf4eaeac1c9da724fa@localhost.localdomain>
Download mbox | patch
Permalink /patch/44081/
State Not Applicable
Headers show

Comments

phabricator - Dec. 27, 2019, 10:01 p.m.
Closed by commit rHG68b09ebf1c13: ancestor: drop another unused variable assignment (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7737?vs=18953&id=18968

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7737/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7737

AFFECTED FILES
  mercurial/ancestor.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/ancestor.py b/mercurial/ancestor.py
--- a/mercurial/ancestor.py
+++ b/mercurial/ancestor.py
@@ -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: