rebase: add a stateobj variable to rebaseruntime class
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 01 Jul 2018 00:46:59 +0530
changeset 38516 7c853edcf4ed
parent 38515 19076e2d62e7
child 38517 4df9cef86740
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
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):