comparison tests/test-notify-changegroup.t @ 12474:f213af8211cc

tests: unify test-notify-changegroup
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:44:49 -0500
parents tests/test-notify-changegroup@ca6ede0988d5
children 6cc4b14fb76b
comparison
equal deleted inserted replaced
12473:52aac5c5c2a6 12474:f213af8211cc
1
2 $ cat <<EOF >> $HGRCPATH
3 > [extensions]
4 > notify=
5 >
6 > [hooks]
7 > changegroup.notify = python:hgext.notify.hook
8 >
9 > [notify]
10 > sources = push
11 > diffstat = False
12 > maxsubject = 10
13 >
14 > [usersubs]
15 > foo@bar = *
16 >
17 > [reposubs]
18 > * = baz
19 > EOF
20 $ hg init a
21
22 clone
23
24 $ hg --traceback clone a b
25 updating to branch default
26 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
27 $ echo a > b/a
28
29 commit
30
31 $ hg --traceback --cwd b commit -Ama
32 adding a
33 $ echo a >> b/a
34
35 commit
36
37 $ hg --traceback --cwd b commit -Amb
38
39 push
40
41 $ hg --traceback --cwd b push ../a 2>&1 |
42 > python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),'
43 pushing to ../a
44 searching for changes
45 adding changesets
46 adding manifests
47 adding file changes
48 added 2 changesets with 2 changes to 1 files
49 Content-Type: text/plain; charset="us-ascii"
50 MIME-Version: 1.0
51 Content-Transfer-Encoding: 7bit
52 Date: * (glob)
53 Subject: * (glob)
54 From: test
55 X-Hg-Notification: changeset cb9a9f314b8b
56 Message-Id: <*> (glob)
57 To: baz, foo@bar
58
59 changeset cb9a9f314b8b in */a (glob)
60 details: */a?cmd=changeset;node=cb9a9f314b8b (glob)
61 summary: a
62
63 changeset ba677d0156c1 in */a (glob)
64 details: */a?cmd=changeset;node=ba677d0156c1 (glob)
65 summary: b
66
67 diffs (6 lines):
68
69 diff -r 000000000000 -r ba677d0156c1 a
70 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
71 +++ b/a Thu Jan 01 00:00:00 1970 +0000
72 @@ -0,0 +1,2 @@
73 +a
74 +a
75