Patchwork D7736: ancestor: drop an unused local variable assignment

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 9:16 p.m.
Message ID <differential-rev-PHID-DREV-345kcdtyrixw63yynvhq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44065/
State Superseded
Headers show

Comments

phabricator - Dec. 27, 2019, 9:16 p.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Caught by PyCharm.

REPOSITORY
  rHG Mercurial

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

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
@@ -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