tests/test-unrelated-pull
author Patrick Mezard <pmezard@gmail.com>
Sat, 11 Apr 2009 21:17:11 +0200
changeset 8048 d22432bdcba1
parent 1960 dac4bd67f6c5
child 12156 4c94b6d0fb1c
permissions -rwxr-xr-x
convert/cvs: delay CVS log parsing after initialization (issue1581/2) Source and destination constructors should be fast so configurations issues are hit quickly, including authentication and filemap/authormap/splicemap issues. Delaying might be a problem if the remove side disconnects idle connections while the log is being read. It did not happen when converting openafs repository, where log retrieval took at least 10mn.

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