comparison mercurial/changegroup.py @ 23205:2d54aa5397cd

changelog: rely on transaction for finalization Instead of calling 'cl.finalize()' by hand (possibly at a bogus time) we register it in the transaction during 'delayupdate' and rely on 'tr.close()' to call it at the right time.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 18 Oct 2014 01:09:41 -0700
parents 3872d563e01a
children cadc9a723d60
comparison
equal deleted inserted replaced
23204:10beda5bd2b7 23205:2d54aa5397cd
786 # publishing only alter behavior during push 786 # publishing only alter behavior during push
787 # 787 #
788 # strip should not touch boundary at all 788 # strip should not touch boundary at all
789 phases.retractboundary(repo, tr, targetphase, added) 789 phases.retractboundary(repo, tr, targetphase, added)
790 790
791 # make changelog see real files again
792 cl.finalize(trp)
793 791
794 tr.close() 792 tr.close()
795 793
796 if changesets > 0: 794 if changesets > 0:
797 if srctype != 'strip': 795 if srctype != 'strip':