Keep names of inherited commands
Eases interactive documentation lookup.
Except for _parse which moved from cmdutil.parse to dispatch._parse,
there prefer most recent name.
#!/bin/shcat<<EOF >> $HGRCPATH[extensions]hgext.keyword =[keyword]* =b = ignoreEOFecho%help# grep for backwards compatibilityhghelpkeyword\|grep-E-v'^list of commands|hg -v help keyword|^$'echo%hgkwdemohg--quietkwdemo--default\|sed-e's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!'\-e's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /'\-e'/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /'\-e's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!'hg--quietkwdemo"Branch = {branches}"hginitTestcdTestecho%kwshrinkshouldabortinempty/invalidrepohgkwshrinkecho'expand $Id$'>aecho'do not process $Id:'>>aecho'xxx $'>>aecho'ignore $Id$'>becho%catcatabecho%defaultkeywordexpansionecho%commithg--debugcommit-A-mab-d'0 0'-u'User Name <user@example.com>'echo%statushgstatusecho%identifyhg--quietidentifyecho%catcatabecho%hgcathgcatabecho%touchtouchabecho%statushgstatusrmabecho%updatehgupdateecho%catcatabecho%copyhgcpacecho%commithg--debugcommit-ma2c-d'1 0'-u'User Name <user@example.com>'echo%cataccatacecho%touchcopiedctouchcecho%statushgstatusecho%diff--revhgdiff--rev0|grep-F-v'b/c'echo%rollbackhgrollbackecho%statushgstatusecho%update-Chgupdate--cleanecho%customkeywordexpansionecho%trywithkwdemohg--quietkwdemo"Xinfo = {author}: {desc}"cat<<EOF >>$HGRCPATH[keywordmaps]Id = {file} {node|short} {date|rfc822date} {author|user}Xinfo = {author}: {desc}EOFecho%catcatabecho%hgcathgcatabecho'$Xinfo$'>>acat<<EOF >> logfirstlinesecondlineEOFecho%interruptedcommit# redirection and grep for backwards compatibilityHGEDITOR=falsehgcommit2>&1|grep-F-v'edit failed:'echo%statushgstatusecho%commithg--debugcommit-llog-d'2 0'-u'User Name <user@example.com>'rmlogecho%statushgstatusecho%catcatabecho%hgcathgcatabecho%removehgremoveahg--debugcommit-mrmaecho%statushgstatusecho%rollbackhgrollbackecho%statushgstatusecho%revertahgrevert--no-backup--revtipaecho%catacataecho%clonetotestincomingcd..hgclone-r0TestTest-acdTest-acat<<EOF >> .hg/hgrc[paths]default = ../TestEOFecho%incoming# remove path to temp dir for backwards compatibilityhgincoming|grep-v'^comparing with'echo%switchoffexpansioncd../Testecho%kwshrinkhg--debugkwshrinkecho%catcatabecho%hgcathgcatabrm$HGRCPATHecho%catcatabecho%hgcathgcatab