comparison tests/test-notify @ 3740:aef384dbc731

add test for the notify extension
author Matt Mackall <mpm@selenic.com>
date Fri, 01 Dec 2006 01:29:13 -0600
parents
children b5c4d749f37f
comparison
equal deleted inserted replaced
3739:16f8e7d1dd54 3740:aef384dbc731
1 #!/bin/sh
2
3 cat <<EOF >> $HGRCPATH
4 [extensions]
5 notify=
6
7 [hooks]
8 incoming.notify = python:hgext.notify.hook
9
10 [notify]
11 config = $HGTMP/.notify.conf
12 sources = pull
13 domain = test.com
14 strip = 3
15 template = Subject: {desc|firstline|strip}\nFrom: {author}\n\nchangeset {node|short} in {webroot}\ndescription:\n\t{desc|tabindent|strip}
16
17 [web]
18 baseurl = http://test/
19
20 [usersubs]
21 foo@bar = *
22 EOF
23
24 hg init a
25 echo a > a/a
26 echo % commit
27 hg --traceback --cwd a commit -Ama -d '0 0'
28
29 echo % clone
30 hg --traceback clone a b
31
32 echo a >> a/a
33 echo % commit
34 hg --traceback --cwd a commit -Amb -d '1 0'
35
36 echo % pull
37 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
38 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/'