tests/test-notify
changeset 4489 afa1f57ae484
parent 4157 bfeff6dcac7a
child 4517 5371a213b0f4
equal deleted inserted replaced
4473:671158f060cc 4489:afa1f57ae484
    32 hg --traceback --cwd a commit -Amb -d '1 0'
    32 hg --traceback --cwd a commit -Amb -d '1 0'
    33 
    33 
    34 echo '% pull (minimal config)'
    34 echo '% pull (minimal config)'
    35 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
    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/' \
    36   -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \
    37   -e 's/^details: .*test-notify/details: test-notify/'
    37   -e 's/^details: .*test-notify/details: test-notify/' \
       
    38   -e 's/^Date:.*/Date:/'
    38 
    39 
    39 cat <<EOF >> $HGRCPATH
    40 cat <<EOF >> $HGRCPATH
    40 [notify]
    41 [notify]
    41 config = $HGTMP/.notify.conf
    42 config = $HGTMP/.notify.conf
    42 domain = test.com
    43 domain = test.com
    48 EOF
    49 EOF
    49 
    50 
    50 echo % pull
    51 echo % pull
    51 hg --cwd b rollback
    52 hg --cwd b rollback
    52 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
    53 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
    53   -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/'
    54   -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
       
    55   -e 's/^Date:.*/Date:/'
    54 
    56