Mercurial > hg
view tests/test-push-hook-lock @ 2192:2be3ac7abc21
add bugzilla integration hook. example of writing hook in python.
hook updates bugzilla bugs when it sees commit comments that mention
bug id, such as "i fixed bug 77".
only bugzilla 2.16 supported yet, but easy to extend. bugzilla versions
have different schema, i have not used later than 2.16.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 03 May 2006 14:40:39 -0700 |
parents | 876e4e6ad82b |
children |
line wrap: on
line source
#!/bin/sh hg init 1 echo '[ui]' >> 1/.hg/hgrc echo 'timeout = 10' >> 1/.hg/hgrc echo foo > 1/foo hg --cwd 1 ci -A -m foo hg clone 1 2 hg clone 2 3 echo '[hooks]' >> 2/.hg/hgrc echo 'changegroup.push = hg push -qf ../1' >> 2/.hg/hgrc echo bar >> 3/foo hg --cwd 3 ci -m bar hg --cwd 3 push ../2