D7737: ancestor: drop another unused variable assignment
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Fri Dec 27 21:16:44 UTC 2019
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Also caught by PyCharm. The only time this is used is immediately after another
assignment below this.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7737
AFFECTED FILES
mercurial/ancestor.py
CHANGE DETAILS
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:
To: mharbison72, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list