view tests/test-notify-changegroup @ 12543:0788d6194a2c

l10n: churn, color, convert and eol extension done New status: 1793 messages complete with 306 fuzzies and 799 untranslated. Transmitted-via: Transifex (www.transifex.net).
author Christoph <christoph@webvariants.de>
date Tue, 21 Sep 2010 00:25:25 +0000
parents ca6ede0988d5
children
line wrap: on
line source

#!/bin/sh

cat <<EOF >> $HGRCPATH
[extensions]
notify=

[hooks]
changegroup.notify = python:hgext.notify.hook

[notify]
sources = push
diffstat = False
maxsubject = 10

[usersubs]
foo@bar = *

[reposubs]
* = baz
EOF

hg init a

echo % clone
hg --traceback clone a b

echo a > b/a
echo % commit
hg --traceback --cwd b commit -Ama

echo a >> b/a
echo % commit
hg --traceback --cwd b commit -Amb

echo % push
hg --traceback --cwd b push ../a 2>&1 |
    python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' |
    sed -e 's/\(Message-Id:\).*/\1/' \
        -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \
        -e 's/^Subject: .*/Subject: test-notify-changegroup/' \
        -e 's/^details: .*test-notify/details: test-notify/' \
        -e 's/^Date:.*/Date:/'