##// END OF EJS Templates
absorb: let scmutil.cleanupnodes() take care of setting phase...
Martin von Zweigbergk -
r41979:b38c7304 default
parent child Browse files
Show More
@@ -848,10 +848,7 b' class fixupstate(object):'
848 848 if self._useobsolete and self.ui.configbool('absorb', 'add-noise'):
849 849 extra['absorb_source'] = ctx.hex()
850 850 mctx = overlaycontext(memworkingcopy, ctx, parents, extra=extra)
851 # preserve phase
852 with mctx.repo().ui.configoverride({
853 ('phases', 'new-commit'): ctx.phase()}):
854 return mctx.commit()
851 return mctx.commit()
855 852
856 853 @util.propertycache
857 854 def _useobsolete(self):
@@ -862,7 +859,8 b' class fixupstate(object):'
862 859 replacements = {k: ([v] if v is not None else [])
863 860 for k, v in self.replacemap.iteritems()}
864 861 if replacements:
865 scmutil.cleanupnodes(self.repo, replacements, operation='absorb')
862 scmutil.cleanupnodes(self.repo, replacements, operation='absorb',
863 fixphase=True)
866 864
867 865 def _parsechunk(hunk):
868 866 """(crecord.uihunk or patch.recordhunk) -> (path, (a1, a2, [bline]))"""
General Comments 0
You need to be logged in to leave comments. Login now