##// 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 % (changesets, revisions, files, htext))
406 % (changesets, revisions, files, htext))
407 repo.invalidatevolatilesets()
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 if changesets > 0:
413 if changesets > 0:
410 if 'node' not in tr.hookargs:
414 if 'node' not in tr.hookargs:
411 tr.hookargs['node'] = hex(cl.node(clstart))
415 tr.hookargs['node'] = hex(cl.node(clstart))
@@ -686,6 +686,7 b' new commits must be visible in pretxncha'
686 $ cd ..
686 $ cd ..
687 $ hg init to
687 $ hg init to
688 $ echo '[hooks]' >> to/.hg/hgrc
688 $ echo '[hooks]' >> to/.hg/hgrc
689 $ echo 'prechangegroup = hg --traceback tip' >> to/.hg/hgrc
689 $ echo 'pretxnchangegroup = hg --traceback tip' >> to/.hg/hgrc
690 $ echo 'pretxnchangegroup = hg --traceback tip' >> to/.hg/hgrc
690 $ echo a >> to/a
691 $ echo a >> to/a
691 $ hg --cwd to ci -Ama
692 $ hg --cwd to ci -Ama
@@ -698,6 +699,12 b' new commits must be visible in pretxncha'
698 $ hg --cwd from push
699 $ hg --cwd from push
699 pushing to $TESTTMP/to (glob)
700 pushing to $TESTTMP/to (glob)
700 searching for changes
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 adding changesets
708 adding changesets
702 adding manifests
709 adding manifests
703 adding file changes
710 adding file changes
General Comments 0
You need to be logged in to leave comments. Login now