Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-extension @ 4932:93b7e2fa7ee3
help: avoid traceback if an extension has only debug commands
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 19 Jul 2007 19:43:25 -0300 |
parents | c41a404ac387 |
children |
comparison
equal
deleted
inserted
replaced
4924:b8076522e889 | 4932:93b7e2fa7ee3 |
---|---|
62 EOF | 62 EOF |
63 emptypath=`pwd`/empty.py | 63 emptypath=`pwd`/empty.py |
64 echo '[extensions]' > $HGRCPATH | 64 echo '[extensions]' > $HGRCPATH |
65 echo "empty = $emptypath" >> $HGRCPATH | 65 echo "empty = $emptypath" >> $HGRCPATH |
66 hg help empty | 66 hg help empty |
67 | |
68 cat > debugextension.py <<EOF | |
69 '''only debugcommands | |
70 ''' | |
71 def debugfoobar(ui, repo, *args, **opts): | |
72 "yet another debug command" | |
73 pass | |
74 | |
75 cmdtable = {"debugfoobar": (debugfoobar, (), "hg debugfoobar")} | |
76 EOF | |
77 debugpath=`pwd`/debugextension.py | |
78 echo '[extensions]' > $HGRCPATH | |
79 echo "debugextension = $debugpath" >> $HGRCPATH | |
80 hg help debugextension | |
81 hg --debug help debugextension |