Patchwork D3874: rebase: add a stateobj variable to rebaseruntime class

login
register
mail settings
Submitter phabricator
Date July 1, 2018, 8:33 p.m.
Message ID <differential-rev-PHID-DREV-ta65au6yozgymz5owovs-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32554/
State Superseded
Headers show

Comments

phabricator - July 1, 2018, 8:33 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3874

AFFECTED FILES
  hgext/rebase.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -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):