Mercurial > hg
comparison tests/test-notify @ 4094:fbf0e9acfd83
notify: don't try to fix addresses if notify.domain is not set
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 16 Feb 2007 04:54:49 -0200 |
parents | 86098ec4b77a |
children | f5f171785e29 |
comparison
equal
deleted
inserted
replaced
4093:669f99f78db0 | 4094:fbf0e9acfd83 |
---|---|
6 | 6 |
7 [hooks] | 7 [hooks] |
8 incoming.notify = python:hgext.notify.hook | 8 incoming.notify = python:hgext.notify.hook |
9 | 9 |
10 [notify] | 10 [notify] |
11 config = $HGTMP/.notify.conf | |
12 sources = pull | 11 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 diffstat = False | 12 diffstat = False |
17 | |
18 [web] | |
19 baseurl = http://test/ | |
20 | 13 |
21 [usersubs] | 14 [usersubs] |
22 foo@bar = * | 15 foo@bar = * |
16 | |
17 [reposubs] | |
18 * = baz | |
23 EOF | 19 EOF |
24 | 20 |
25 hg help notify | 21 hg help notify |
26 hg init a | 22 hg init a |
27 echo a > a/a | 23 echo a > a/a |
33 | 29 |
34 echo a >> a/a | 30 echo a >> a/a |
35 echo % commit | 31 echo % commit |
36 hg --traceback --cwd a commit -Amb -d '1 0' | 32 hg --traceback --cwd a commit -Amb -d '1 0' |
37 | 33 |
34 echo '% pull (minimal config)' | |
35 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ | |
36 -e 's/changeset \([0-9a-f]* \)\?in .*test-notif/changeset \1in test-notif/' \ | |
37 -e 's/^details: .*test-notify/details: test-notify/' | |
38 | |
39 cat <<EOF >> $HGRCPATH | |
40 [notify] | |
41 config = $HGTMP/.notify.conf | |
42 domain = test.com | |
43 strip = 3 | |
44 template = Subject: {desc|firstline|strip}\nFrom: {author}\n\nchangeset {node|short} in {webroot}\ndescription:\n\t{desc|tabindent|strip} | |
45 | |
46 [web] | |
47 baseurl = http://test/ | |
48 EOF | |
49 | |
38 echo % pull | 50 echo % pull |
51 hg --cwd b rollback | |
39 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ | 52 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ |
40 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' | 53 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' |
54 |