comparison tests/test-hook.t @ 16619:bc84a1aeaf5a stable

changelog: ensure that nodecache is valid (issue3428) This ensures that an out-of-process hook can see an incoming changegroup.
author Bryan O'Sullivan <bryano@fb.com>
date Fri, 11 May 2012 01:55:33 -0700
parents a3dcc59054ca
children d0e419b0f7de c285aae10f6c
comparison
equal deleted inserted replaced
16611:462dd183bd73 16619:bc84a1aeaf5a
577 577
578 $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc 578 $ echo 'pretxncommit.printtags = python:hooktests.printtags' >> .hg/hgrc
579 $ hg tag -f foo 579 $ hg tag -f foo
580 ['a', 'foo', 'tip'] 580 ['a', 'foo', 'tip']
581 581
582 new commits must be visible in pretxnchangegroup (issue3428)
583
584 $ cd ..
585 $ hg init to
586 $ echo '[hooks]' >> to/.hg/hgrc
587 $ echo 'pretxnchangegroup = hg --traceback tip' >> to/.hg/hgrc
588 $ echo a >> to/a
589 $ hg --cwd to ci -Ama
590 adding a
591 $ hg clone to from
592 updating to branch default
593 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
594 $ echo aa >> from/a
595 $ hg --cwd from ci -mb
596 $ hg --cwd from push
597 pushing to $TESTTMP/to
598 searching for changes
599 adding changesets
600 adding manifests
601 adding file changes
602 added 1 changesets with 1 changes to 1 files
603 changeset: 1:9836a07b9b9d
604 tag: tip
605 user: test
606 date: Thu Jan 01 00:00:00 1970 +0000
607 summary: b
608