Mercurial > hg
comparison hgext/rebase.py @ 38516:7c853edcf4ed
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
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 01 Jul 2018 00:46:59 +0530 |
parents | 19076e2d62e7 |
children | 4df9cef86740 |
comparison
equal
deleted
inserted
replaced
38515:19076e2d62e7 | 38516:7c853edcf4ed |
---|---|
46 repair, | 46 repair, |
47 revset, | 47 revset, |
48 revsetlang, | 48 revsetlang, |
49 scmutil, | 49 scmutil, |
50 smartset, | 50 smartset, |
51 state as statemod, | |
51 util, | 52 util, |
52 ) | 53 ) |
53 | 54 |
54 release = lock.release | 55 release = lock.release |
55 | 56 |
182 self.keepf = opts.get('keep', False) | 183 self.keepf = opts.get('keep', False) |
183 self.keepbranchesf = opts.get('keepbranches', False) | 184 self.keepbranchesf = opts.get('keepbranches', False) |
184 self.obsoletenotrebased = {} | 185 self.obsoletenotrebased = {} |
185 self.obsoletewithoutsuccessorindestination = set() | 186 self.obsoletewithoutsuccessorindestination = set() |
186 self.inmemory = inmemory | 187 self.inmemory = inmemory |
188 self.stateobj = statemod.cmdstate(repo, 'rebasestate') | |
187 | 189 |
188 @property | 190 @property |
189 def repo(self): | 191 def repo(self): |
190 if self.prepared: | 192 if self.prepared: |
191 return self._repo.unfiltered() | 193 return self._repo.unfiltered() |