##// END OF EJS Templates
hooks: fix hooks not firing if prechangegroup was set (issue4934)...
Durham Goode -
r26859:e7c618ce stable
parent child Browse files
Show More
@@ -406,6 +406,10 b' class cg1unpacker(object):'
406 406 % (changesets, revisions, files, htext))
407 407 repo.invalidatevolatilesets()
408 408
409 # Call delayupdate again to ensure the transaction writepending
410 # subscriptions are still in place.
411 cl.delayupdate(tr)
412
409 413 if changesets > 0:
410 414 if 'node' not in tr.hookargs:
411 415 tr.hookargs['node'] = hex(cl.node(clstart))
@@ -686,6 +686,7 b' new commits must be visible in pretxncha'
686 686 $ cd ..
687 687 $ hg init to
688 688 $ echo '[hooks]' >> to/.hg/hgrc
689 $ echo 'prechangegroup = hg --traceback tip' >> to/.hg/hgrc
689 690 $ echo 'pretxnchangegroup = hg --traceback tip' >> to/.hg/hgrc
690 691 $ echo a >> to/a
691 692 $ hg --cwd to ci -Ama
@@ -698,6 +699,12 b' new commits must be visible in pretxncha'
698 699 $ hg --cwd from push
699 700 pushing to $TESTTMP/to (glob)
700 701 searching for changes
702 changeset: 0:cb9a9f314b8b
703 tag: tip
704 user: test
705 date: Thu Jan 01 00:00:00 1970 +0000
706 summary: a
707
701 708 adding changesets
702 709 adding manifests
703 710 adding file changes
General Comments 0
You need to be logged in to leave comments. Login now