comparison tests/test-extension @ 4965:4106dde15aed

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Sat, 21 Jul 2007 16:44:38 -0500
parents 93b7e2fa7ee3
children
comparison
equal deleted inserted replaced
4964:ee983d0dbea8 4965:4106dde15aed
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