##// END OF EJS Templates
Update on pull -u when heads were closed (fixes issue666)....
Update on pull -u when heads were closed (fixes issue666). Patch written by Benoit Boissinot. This should probably be improved in the future to handle long-living branches, as joining two "other" heads will switch to that new head. But this is not a new problem, as adding to the "other" head would have switched to that new head, too.

File last commit:

r4517:5371a213 default
r5080:73fdc8bd default
Show More
test-notify
62 lines | 1.3 KiB | text/plain | TextLexer
Matt Mackall
add test for the notify extension
r3740 #!/bin/sh
cat <<EOF >> $HGRCPATH
[extensions]
notify=
[hooks]
incoming.notify = python:hgext.notify.hook
[notify]
sources = pull
Thomas Arendsen Hein
Fix test-notify for systems without or with a different version of diffstat....
r3747 diffstat = False
Matt Mackall
add test for the notify extension
r3740
[usersubs]
foo@bar = *
Alexis S. L. Carvalho
notify: don't try to fix addresses if notify.domain is not set
r4094
[reposubs]
* = baz
Matt Mackall
add test for the notify extension
r3740 EOF
Benoit Boissinot
fix hg help <ext> for extension that do not define any command...
r4009 hg help notify
Matt Mackall
add test for the notify extension
r3740 hg init a
echo a > a/a
echo % commit
hg --traceback --cwd a commit -Ama -d '0 0'
echo % clone
hg --traceback clone a b
echo a >> a/a
echo % commit
hg --traceback --cwd a commit -Amb -d '1 0'
Alexis S. L. Carvalho
notify: don't try to fix addresses if notify.domain is not set
r4094 echo '% pull (minimal config)'
hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
Thomas Arendsen Hein
Fix sed expression in test-notify to be more portable.
r4157 -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \
Mathieu Clabaut
Add sending date to notify message....
r4479 -e 's/^details: .*test-notify/details: test-notify/' \
-e 's/^Date:.*/Date:/'
Alexis S. L. Carvalho
notify: don't try to fix addresses if notify.domain is not set
r4094
cat <<EOF >> $HGRCPATH
[notify]
config = $HGTMP/.notify.conf
domain = test.com
strip = 3
template = Subject: {desc|firstline|strip}\nFrom: {author}\n\nchangeset {node|short} in {webroot}\ndescription:\n\t{desc|tabindent|strip}
[web]
baseurl = http://test/
EOF
Patrick Mezard
ui: make readsections() abort when configuration cannot be read.
r4517 echo % fail for config file is missing
hg --cwd b rollback
hg --cwd b pull ../a 2>&1 | grep 'unable to open.*\.notify\.conf' > /dev/null && echo pull failed
touch "$HGTMP/.notify.conf"
Matt Mackall
add test for the notify extension
r3740 echo % pull
Alexis S. L. Carvalho
notify: don't try to fix addresses if notify.domain is not set
r4094 hg --cwd b rollback
Matt Mackall
add test for the notify extension
r3740 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
Mathieu Clabaut
Add sending date to notify message....
r4479 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
-e 's/^Date:.*/Date:/'
Alexis S. L. Carvalho
notify: don't try to fix addresses if notify.domain is not set
r4094