rebase: remove duplicate initialization of a field
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 25 Mar 2021 08:38:16 -0700
changeset 46862 82b17bfc13eb
parent 46861 c7c6c11fe1e4
child 46863 d9601243b73c
rebase: remove duplicate initialization of a field `obsolete_with_successor_in_destination` is already initialized in the constructor. Differential Revision: https://phab.mercurial-scm.org/D10268
hgext/rebase.py
--- a/hgext/rebase.py	Mon Apr 05 12:22:12 2021 +0200
+++ b/hgext/rebase.py	Thu Mar 25 08:38:16 2021 -0700
@@ -350,7 +350,6 @@
 
     def _handleskippingobsolete(self):
         """Compute structures necessary for skipping obsolete revisions"""
-        self.obsolete_with_successor_in_destination = {}
         if not self.ui.configbool(b'experimental', b'rebaseskipobsolete'):
             return
         obsoleteset = {r for r in self.state if self.repo[r].obsolete()}