tests/test-patchbomb
author Patrick Mezard <pmezard@gmail.com>
Sun, 17 Jun 2007 19:39:47 +0200
changeset 4595 f7f2bd7f981d
parent 4594 1e11e8b6acab
child 4597 ec431334e4fc
permissions -rwxr-xr-x
test-patchbomb: fix non-existing --date parameter and filtering regexps.

#!/bin/sh

echo "[extensions]" >> $HGRCPATH
echo "patchbomb=" >> $HGRCPATH

hg init
echo a > a
hg commit -Ama -d '1 0'

hg email -n -f quux -t foo -c bar tip | \
  sed -e 's/\(Message-Id:\).*@.*/\1/' | \
  sed -e 's/\(Date:\).*/\1/'

echo b > b
hg commit -Amb -d '2 0'

# Pipe something to make raw_input() happy even under pysh+win32
echo test | hg email -n -f quux -t foo -c bar -s test 0:tip | \
  sed -e 's/\(Message-Id:\).*@.*/\1/' | \
  sed -e 's/\(In-Reply-To:\).*@.*/\1/' | \
  sed -e 's/\(Date:\).*/\1/'