comparison hgext/rebase.py @ 46862:82b17bfc13eb

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
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 25 Mar 2021 08:38:16 -0700
parents 27ba8acd5684
children d9601243b73c
comparison
equal deleted inserted replaced
46861:c7c6c11fe1e4 46862:82b17bfc13eb
348 348
349 return data 349 return data
350 350
351 def _handleskippingobsolete(self): 351 def _handleskippingobsolete(self):
352 """Compute structures necessary for skipping obsolete revisions""" 352 """Compute structures necessary for skipping obsolete revisions"""
353 self.obsolete_with_successor_in_destination = {}
354 if not self.ui.configbool(b'experimental', b'rebaseskipobsolete'): 353 if not self.ui.configbool(b'experimental', b'rebaseskipobsolete'):
355 return 354 return
356 obsoleteset = {r for r in self.state if self.repo[r].obsolete()} 355 obsoleteset = {r for r in self.state if self.repo[r].obsolete()}
357 ( 356 (
358 self.obsolete_with_successor_in_destination, 357 self.obsolete_with_successor_in_destination,