tests/test-issue1438
author Patrick Mezard <pmezard@gmail.com>
Wed, 11 Nov 2009 19:45:00 +0100
changeset 9829 1b2516a547d4
parent 7783 2c5b2abfb8be
permissions -rwxr-xr-x
convert/svn: delegate to svn bindings if HTTP probe fails convert extension tries to guess the remote repository type with HTTP probes. Unfortunately, it does not handle authentication or HTTPS handshakes, so regular svn repositories may be excluded. Instead, when a non-404 error is retrieved, we keep trying with the svn bindings. The drawback is missing svn bindings will make the conversion to fail even for non-svn targets. This can be avoided with --source.

#!/bin/sh
"$TESTDIR/hghave" symlink || exit 80

rm -rf a
hg init a
cd a

ln -s foo link
hg add link
hg ci -mbad link
hg rm link
hg ci -mok
hg diff -g -r 0:1 > bad.patch
hg up 0
hg import --no-commit bad.patch
hg st