hgext/githelp.py
changeset 40295 fa88170c10bb
parent 40293 c303d65d2e34
child 41365 876494fd967d
equal deleted inserted replaced
40294:fabbf9310025 40295:fa88170c10bb
    48         s = s.replace('HEAD', '.')
    48         s = s.replace('HEAD', '.')
    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     helpcategory=command.CATEGORY_HELP, helpbasic=True)
    56 def githelp(ui, repo, *args, **kwargs):
    56 def githelp(ui, repo, *args, **kwargs):
    57     '''suggests the Mercurial equivalent of the given git command
    57     '''suggests the Mercurial equivalent of the given git command
    58 
    58 
    59     Usage: hg githelp -- <git command>
    59     Usage: hg githelp -- <git command>
    60     '''
    60     '''