# HG changeset patch # User Boris Feld # Date 1498786926 -7200 # Node ID a5a810df4c815ba7f1e4f820504459a52ec39b2a # Parent eb1517776f8a5a98788389700c003689c03ed19c configitems: register the 'experimental.rebaseskipobsolete' config diff -r eb1517776f8a -r a5a810df4c81 hgext/rebase.py --- a/hgext/rebase.py Fri Jun 30 03:41:49 2017 +0200 +++ b/hgext/rebase.py Fri Jun 30 03:42:06 2017 +0200 @@ -73,6 +73,13 @@ # leave the attribute unspecified. testedwith = 'ships-with-hg-core' +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('experimental', 'rebaseskipobsolete', + default=True, +) + def _nothingtorebase(): return 1 @@ -307,8 +314,7 @@ destmap: {srcrev: destrev} destination revisions """ self.obsoletenotrebased = {} - if not self.ui.configbool('experimental', 'rebaseskipobsolete', - default=True): + if not self.ui.configbool('experimental', 'rebaseskipobsolete'): return obsoleteset = set(obsoleterevs) self.obsoletenotrebased = _computeobsoletenotrebased(self.repo,