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
# issue 1678
echo "# -- setting up base repo"
hg init a
cd a
touch a
hg ci -Am a
cd ..
echo "# -- cloning base repo"
hg clone a b
cd b
echo "# -- setting up cset to push"
hg up null
touch a
hg ci -Am b # different msg so we get a clog new entry
echo "# -- pushing"
hg push -f ../a