view tests/test-patchbomb @ 4639:c7371aa0c153

test-annotate: add a test for issue 589.
author Patrick Mezard <pmezard@gmail.com>
date Wed, 20 Jun 2007 00:10:21 +0200
parents f7f2bd7f981d
children ec431334e4fc
line wrap: on
line source

#!/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/'