tests/test-extension
changeset 4950 93b7e2fa7ee3
parent 4738 c41a404ac387
child 5523 5db730475d6d
--- a/tests/test-extension	Wed Jul 18 14:00:55 2007 -0700
+++ b/tests/test-extension	Thu Jul 19 19:43:25 2007 -0300
@@ -64,3 +64,18 @@
 echo '[extensions]' > $HGRCPATH
 echo "empty = $emptypath" >> $HGRCPATH
 hg help empty
+
+cat > debugextension.py <<EOF
+'''only debugcommands
+'''
+def debugfoobar(ui, repo, *args, **opts):
+    "yet another debug command"
+    pass
+
+cmdtable = {"debugfoobar": (debugfoobar, (), "hg debugfoobar")}
+EOF
+debugpath=`pwd`/debugextension.py
+echo '[extensions]' > $HGRCPATH
+echo "debugextension = $debugpath" >> $HGRCPATH
+hg help debugextension
+hg --debug help debugextension