tests/test-unrelated-pull
author Vadim Gelfer <vadim.gelfer@gmail.com>
Fri, 28 Jul 2006 10:46:25 -0700
changeset 2719 532809ba1db5
parent 1960 dac4bd67f6c5
permissions -rwxr-xr-x
hg.py: add islocal() and defaultdest() functions, refactor islocal tells if a repo or url is local. defaultdest returns default path for clone if explicit path not given. clone can now take repo or url as source

#!/bin/sh

mkdir a
cd a
hg init
echo 123 > a
hg add a
hg commit -m "a" -u a -d "1000000 0"

cd ..
mkdir b
cd b
hg init
echo 321 > b
hg add b
hg commit -m "b" -u b -d "1000000 0"

hg pull ../a
hg pull -f ../a
hg heads