record: check that we are not committing a merge before patch selection
It might sound like a good idea to use record to filter changes when merging.
If someone attemps this, it's better to tell her "no" right ahead, before the
patch generation/line selection, so she does not spend time doing it just to
receive a red light after that (sometimes rather long) process.
#!/bin/sh
cat >> $HGRCPATH <<EOF
[extensions]
hgcia=
[hooks]
changegroup.cia = python:hgext.hgcia.hook
[cia]
user = testuser
project = testproject
test = True
EOF
hg init src
hg init cia
cd src
echo foo > foo
hg ci -Amfoo
hg push ../cia