equal
deleted
inserted
replaced
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 ''' |