view tests/test-clone @ 6051:1038b1458d7a

keyword: safeguards against erroneous behaviour or aborts prevent issues due to global [keyword] filename patterns: - add email to nokwcommands - protect everything under .hg from expansion (tested with qcommit) - exclude everything starting with .hg* just in case prevent abort when pulling from bundlerepo: - do not set up kwrepo for bundlerepo expansion inside a bundle is nonsense bundlerepo issue spotted and test case provided by pmezard.
author Christian Ebert <blacktrash@gmx.net>
date Wed, 06 Feb 2008 23:14:33 +0100
parents 76c4cadb49fc
children 3b96cefc1b2b
line wrap: on
line source

#!/bin/sh

mkdir a
cd a
hg init
echo a > a
hg add a
hg commit -m test -d '0 0'

# Default operation
hg clone . ../b
cd ../b
cat a
hg verify

# No update
hg clone -U . ../c
cd ../c
cat a 2>/dev/null || echo "a not present"
hg verify

# Default destination
mkdir ../d
cd ../d
hg clone ../a
cd a
hg cat a

# check that we drop the file:// from the path before
# writing the .hgrc
cd ../..
hg clone file://a e
grep 'file:' e/.hg/hgrc

exit 0