hgbook

diff en/examples/hook.simple @ 139:ceaca14e49f0

Add local regexps to ignore bits of output.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Mar 06 20:46:07 2007 -0800 (2007-03-06)
parents 6f37e6a7d8cd
children 627effec9d4e
line diff
     1.1 --- a/en/examples/hook.simple	Sun Jul 23 23:38:41 2006 -0700
     1.2 +++ b/en/examples/hook.simple	Tue Mar 06 20:46:07 2007 -0800
     1.3 @@ -1,6 +1,7 @@
     1.4  #!/bin/bash
     1.5  
     1.6  #$ name: init
     1.7 +#$ ignore: [0-9a-f]{40}
     1.8  
     1.9  hg init hook-test
    1.10  cd hook-test
    1.11 @@ -12,8 +13,9 @@
    1.12  hg commit -m 'testing commit hook'
    1.13  
    1.14  #$ name: ext
    1.15 +#$ ignore: ^date of commit.*
    1.16  
    1.17 -echo 'commit.when = echo "date of commit:"; date' >> .hg/hgrc
    1.18 +echo 'commit.when = echo -n "date of commit: "; date' >> .hg/hgrc
    1.19  echo a >> a
    1.20  hg commit -m 'i have two hooks'
    1.21