# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1530386219 -19800 # Node ID 7c853edcf4edc072ee08d72a3cceb783d0052b92 # Parent 19076e2d62e7954c5d7d85c130fd09fed24a9e09 rebase: add a stateobj variable to rebaseruntime class The stateobj variable is an object of state.cmdstate() and will be used in upcoming patches to clean up the logic a bit and also use cbor format to write data to rebasestate class. Differential Revision: https://phab.mercurial-scm.org/D3874 diff -r 19076e2d62e7 -r 7c853edcf4ed hgext/rebase.py --- a/hgext/rebase.py Sun Jul 01 00:31:57 2018 +0530 +++ b/hgext/rebase.py Sun Jul 01 00:46:59 2018 +0530 @@ -48,6 +48,7 @@ revsetlang, scmutil, smartset, + state as statemod, util, ) @@ -184,6 +185,7 @@ self.obsoletenotrebased = {} self.obsoletewithoutsuccessorindestination = set() self.inmemory = inmemory + self.stateobj = statemod.cmdstate(repo, 'rebasestate') @property def repo(self):