tests/test-default-push
author Cédric Duval <cedricduval@free.fr>
Sat, 20 Jun 2009 20:57:13 +0200
changeset 8866 87c30fb7e8df
parent 2496 6dbb8ae0a0b3
permissions -rwxr-xr-x
help: remove per-extension paragraph on how to enable it The central place to find this information is the "extensions" help topic.

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