tests/test-extension
changeset 4950 93b7e2fa7ee3
parent 4738 c41a404ac387
child 5523 5db730475d6d
equal deleted inserted replaced
4942:b8076522e889 4950: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