# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-06-30 01:51:21 # Node ID 18f348e035fb6e316665fba649aaf12c1b380da9 # Parent c6a2ce82e60b1aaea13b3f0f393542557169b14f histedit: add a stateobj variable to histeditstate class The stateobj variable will be an instance of state.cmdstate() class. The stateobj variable will be used in upcoming patches to simplify the code a bit and start using cbor to write state files. Differential Revision: https://phab.mercurial-scm.org/D3864 diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -207,6 +207,7 @@ from mercurial import ( registrar, repair, scmutil, + state as statemod, util, ) from mercurial.utils import ( @@ -304,6 +305,7 @@ class histeditstate(object): self.lock = lock self.wlock = wlock self.backupfile = None + self.stateobj = statemod.cmdstate(repo, 'histedit-state') if replacements is None: self.replacements = [] else: