comparison hgext/githelp.py @ 45957:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents 94f227baa76f
children 6000f5b25c9b
comparison
equal deleted inserted replaced
45956:346af7687c6f 45957:89a2afe31e82
57 _(b'hg githelp'), 57 _(b'hg githelp'),
58 helpcategory=command.CATEGORY_HELP, 58 helpcategory=command.CATEGORY_HELP,
59 helpbasic=True, 59 helpbasic=True,
60 ) 60 )
61 def githelp(ui, repo, *args, **kwargs): 61 def githelp(ui, repo, *args, **kwargs):
62 '''suggests the Mercurial equivalent of the given git command 62 """suggests the Mercurial equivalent of the given git command
63 63
64 Usage: hg githelp -- <git command> 64 Usage: hg githelp -- <git command>
65 ''' 65 """
66 66
67 if len(args) == 0 or (len(args) == 1 and args[0] == b'git'): 67 if len(args) == 0 or (len(args) == 1 and args[0] == b'git'):
68 raise error.Abort( 68 raise error.Abort(
69 _(b'missing git command - usage: hg githelp -- <git command>') 69 _(b'missing git command - usage: hg githelp -- <git command>')
70 ) 70 )