Mercurial > hg
comparison mercurial/changegroup.py @ 26882:c4895f9b8ab1 stable
changegroup: back code change of e7c618cee8df out
The previous changeset is a simpler way of fixing issue4934 without changing the
spirit of the code. We can remove the dual call to 'delayupdate' but we keep the
tests to show that the issue is still fixed.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 06 Nov 2015 13:01:15 -0500 |
parents | 6b1ea6961554 |
children | de3335b4c8ef |
comparison
equal
deleted
inserted
replaced
26881:6b1ea6961554 | 26882:c4895f9b8ab1 |
---|---|
403 | 403 |
404 repo.ui.status(_("added %d changesets" | 404 repo.ui.status(_("added %d changesets" |
405 " with %d changes to %d files%s\n") | 405 " with %d changes to %d files%s\n") |
406 % (changesets, revisions, files, htext)) | 406 % (changesets, revisions, files, htext)) |
407 repo.invalidatevolatilesets() | 407 repo.invalidatevolatilesets() |
408 | |
409 # Call delayupdate again to ensure the transaction writepending | |
410 # subscriptions are still in place. | |
411 cl.delayupdate(tr) | |
412 | 408 |
413 if changesets > 0: | 409 if changesets > 0: |
414 if 'node' not in tr.hookargs: | 410 if 'node' not in tr.hookargs: |
415 tr.hookargs['node'] = hex(cl.node(clstart)) | 411 tr.hookargs['node'] = hex(cl.node(clstart)) |
416 hookargs = dict(tr.hookargs) | 412 hookargs = dict(tr.hookargs) |