Mercurial > public > mercurial-scm > hg
comparison mercurial/upgrade_utils/engine.py @ 47062:f38bf44e077f stable
black: make codebase compatible with black v21.4b2 and v20.8b1
I don't know what exact version of black made it care about these whitespace
differences, but this is the version I got when I just installed it with
`pip3 install black`.
I'm intentionally not increasing the version of black required, as I don't want
to force everyone to upgrade their version of black, and these fixes are
backwards compatible with black v20.8b1. If there are more issues in the future
and this becomes a maintenance burden I may do so in a future change.
Tested with both versions of black (I got the older version via
`pip3 install black==20.8b1`)
Differential Revision: https://phab.mercurial-scm.org/D10539
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Fri, 30 Apr 2021 16:13:02 -0700 |
parents | 1c52d77d7861 |
children | bea4717415c0 |
comparison
equal
deleted
inserted
replaced
47061:bd2ed1032b4e | 47062:f38bf44e077f |
---|---|
132 unencoded, | 132 unencoded, |
133 upgrade_op, | 133 upgrade_op, |
134 sidedatacompanion, | 134 sidedatacompanion, |
135 oncopiedrevision, | 135 oncopiedrevision, |
136 ): | 136 ): |
137 """ returns the new revlog object created""" | 137 """returns the new revlog object created""" |
138 newrl = None | 138 newrl = None |
139 if matchrevlog(upgrade_op.revlogs_to_process, rl_type): | 139 if matchrevlog(upgrade_op.revlogs_to_process, rl_type): |
140 ui.note( | 140 ui.note( |
141 _(b'cloning %d revisions from %s\n') % (len(old_revlog), unencoded) | 141 _(b'cloning %d revisions from %s\n') % (len(old_revlog), unencoded) |
142 ) | 142 ) |