tests/test-hgk
author Martin Geisler <mg@lazybytes.net>
Sat, 05 Dec 2009 23:16:09 +0100
changeset 10020 d7c23f4a14c7
parent 6800 cc7114d96548
permissions -rwxr-xr-x
run-tests: install data files correctly In 68964567e406 we began installing some data files in PREFIX/share. When preparing to run the tests, run-tests.py uses --home="" in order to work around home being set in a ~/.pydistutils.cfg file. This somehow overwrites the --prefix option. The result was that the share/ directory was installed in the top of the Mercurial source tree.

#!/bin/sh

echo "[extensions]" >> $HGRCPATH
echo "hgk=" >> $HGRCPATH

hg init repo
cd repo
echo a > a
hg ci -Am adda
hg debug-cat-file commit 0