extensions: move extensions listing functions from mercurial.help
Includes some small fix-ups to comments in enabled() and disabled().
#!/bin/shhg initecho a > ahg ci -Am thg mv a bhg ci -Am t1hg debugrename bhg mv b ahg ci -Am t2hg debugrename aecho % test with --revhg debugrename --rev 1 b