tests/test-default-push
author Patrick Mezard <pmezard@gmail.com>
Sat, 29 Mar 2008 17:14:53 +0100
changeset 6397 e1402cf5e08a
parent 2496 6dbb8ae0a0b3
permissions -rwxr-xr-x
convert: avoid svn log retrieval process cleanup With huge history (like kdelibs), the process termination suddenly consumes a lot of memory (from 700M to 1.3G+). Since the job is done, clean termination is not required, just exit.

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