#!/bin/sh # Test basic extension support cat > foobar.py < file hg add file hg commit -m 'add file' echo '[extensions]' >> $HGRCPATH echo "foobar = $abspath" >> $HGRCPATH hg foo cd .. hg clone a b hg bar echo 'foobar = !' >> $HGRCPATH echo '% module/__init__.py-style' echo "barfoo = $barfoopath" >> $HGRCPATH cd a hg foo echo 'barfoo = !' >> $HGRCPATH cd .. cat > empty.py <> $HGRCPATH hg help empty echo 'empty = !' >> $HGRCPATH cat > debugextension.py <> $HGRCPATH hg help debugextension hg --debug help debugextension echo 'debugextension = !' >> $HGRCPATH