Mercurial > public > mercurial-scm > hg-stable
diff tests/test-extension @ 4738:c41a404ac387
Handle extensions with defined but empty cmdtable
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 28 Jun 2007 21:16:25 -0700 |
parents | 622d8ed78b47 |
children | 93b7e2fa7ee3 |
line wrap: on
line diff
--- a/tests/test-extension Thu Jun 28 09:19:08 2007 -0700 +++ b/tests/test-extension Thu Jun 28 21:16:25 2007 -0700 @@ -53,3 +53,14 @@ echo "barfoo = $barfoopath" >> $HGRCPATH cd a hg foo + +cd .. +cat > empty.py <<EOF +'''empty cmdtable +''' +cmdtable = {} +EOF +emptypath=`pwd`/empty.py +echo '[extensions]' > $HGRCPATH +echo "empty = $emptypath" >> $HGRCPATH +hg help empty