hgext/githelp.py
changeset 40293 c303d65d2e34
parent 38143 c3960c7e66fa
child 40295 fa88170c10bb
equal deleted inserted replaced
40292:9c6473d2038b 40293:c303d65d2e34
    49     # HEAD~ in git is .~1 in mercurial
    49     # HEAD~ in git is .~1 in mercurial
    50     s = re.sub('~$', '~1', s)
    50     s = re.sub('~$', '~1', s)
    51     return s
    51     return s
    52 
    52 
    53 @command('^githelp|git', [
    53 @command('^githelp|git', [
    54     ], _('hg githelp'))
    54     ], _('hg githelp'),
       
    55     helpcategory=command.CATEGORY_HELP)
    55 def githelp(ui, repo, *args, **kwargs):
    56 def githelp(ui, repo, *args, **kwargs):
    56     '''suggests the Mercurial equivalent of the given git command
    57     '''suggests the Mercurial equivalent of the given git command
    57 
    58 
    58     Usage: hg githelp -- <git command>
    59     Usage: hg githelp -- <git command>
    59     '''
    60     '''