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
--- 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):