tests/test-default-push
author Thomas Arendsen Hein <thomas@intevation.de>
Sun, 08 Jul 2007 10:43:57 +0200
changeset 4841 f3f84d5cd268
parent 2496 6dbb8ae0a0b3
permissions -rwxr-xr-x
Strip whitespace from changeset description in changeset_templater. changeset_printer already does this, too.

#!/bin/sh

hg init a
echo a > a/a
hg --cwd a ci -Ama

hg clone a c

hg clone a b
echo b >> b/a
hg --cwd b ci -mb

echo % push should push to default when default-push not set
hg --cwd b push | sed 's/pushing to.*/pushing/'

echo % push should push to default-push when set
echo 'default-push = ../c' >> b/.hg/hgrc
hg --cwd b push | sed 's/pushing to.*/pushing/'