Mercurial > hg
comparison hgext/churn.py @ 45942: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 | 508dfd1c18df |
children | b84c3d43ff2e |
comparison
equal
deleted
inserted
replaced
45941:346af7687c6f | 45942:89a2afe31e82 |
---|---|
154 _(b"hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]"), | 154 _(b"hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]"), |
155 helpcategory=command.CATEGORY_MAINTENANCE, | 155 helpcategory=command.CATEGORY_MAINTENANCE, |
156 inferrepo=True, | 156 inferrepo=True, |
157 ) | 157 ) |
158 def churn(ui, repo, *pats, **opts): | 158 def churn(ui, repo, *pats, **opts): |
159 '''histogram of changes to the repository | 159 """histogram of changes to the repository |
160 | 160 |
161 This command will display a histogram representing the number | 161 This command will display a histogram representing the number |
162 of changed lines or revisions, grouped according to the given | 162 of changed lines or revisions, grouped according to the given |
163 template. The default template will group changes by author. | 163 template. The default template will group changes by author. |
164 The --dateformat option may be used to group the results by | 164 The --dateformat option may be used to group the results by |
191 <alias email> = <actual email> | 191 <alias email> = <actual email> |
192 | 192 |
193 Such a file may be specified with the --aliases option, otherwise | 193 Such a file may be specified with the --aliases option, otherwise |
194 a .hgchurn file will be looked for in the working directory root. | 194 a .hgchurn file will be looked for in the working directory root. |
195 Aliases will be split from the rightmost "=". | 195 Aliases will be split from the rightmost "=". |
196 ''' | 196 """ |
197 | 197 |
198 def pad(s, l): | 198 def pad(s, l): |
199 return s + b" " * (l - encoding.colwidth(s)) | 199 return s + b" " * (l - encoding.colwidth(s)) |
200 | 200 |
201 amap = {} | 201 amap = {} |